<?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/firstLayout" android:layout_width="0dp" android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toTopOf="@+id/secondLayout" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"> <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Entrer" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@+id/textInput" app:layout_constraintTop_toTopOf="parent" /> <EditText android:id="@+id/textInput" android:layout_width="0dp" android:layout_height="60dp" android:ems="10" android:hint="Tapez une question" android:inputType="textPersonName" android:text="Name" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/button" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout> <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/secondLayout" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintTop_toBottomOf="@+id/firstLayout" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"> <ScrollView android:id="@+id/scrollView" android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toTopOf="@+id/navbar"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > <TextView android:id="@+id/textView2" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Lorsqu'un pancake tombe dans la neige avant le 31 décembre, on dit qu'il est:" /> <RadioGroup android:layout_width="match_parent" android:layout_height="match_parent"> <RadioButton android:id="@+id/radioButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Tombé dans la neige avant le 31 décembre" /> <RadioButton android:id="@+id/radioButton2" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Un frizby comestible" /> <RadioButton android:id="@+id/radioButton3" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Une kipa surgelée" /> <RadioButton android:id="@+id/radioButton4" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="La réponse D" /> </RadioGroup> <TextView android:id="@+id/textView3" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Lorsqu'un pancake prend l'avio à destination de Toronto et qu'il fait une escale technique à St Claude, on dit:" /> <RadioGroup android:layout_width="match_parent" android:layout_height="match_parent"> <RadioButton android:id="@+id/radioButton5" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Qu'il n'est pas arrivé à Toronto" /> <RadioButton android:id="@+id/radioButton6" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Qu'il était supposé arriver à Toronto" /> <RadioButton android:id="@+id/radioButton7" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Qu'est-ce qu'il fou ce maudit pancake, tabernacle?" /> <RadioButton android:id="@+id/radioButton8" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="La réponse D" /> </RadioGroup> <TextView android:id="@+id/textView6" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Au cours de quel évènement historique fut créé le panini?" /> <RadioGroup android:layout_width="match_parent" android:layout_height="match_parent"> <RadioButton android:id="@+id/radioButton9" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="En 1618, pendant la guerre des croissans au beurre" /> <RadioButton android:id="@+id/radioButton10" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="En 1702, pendant le massacre du Saint Panini" /> <RadioButton android:id="@+id/radioButton11" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="En 112 avant Célion Dion, pendant la prise de la brioche" /> <RadioButton android:id="@+id/radioButton12" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="La réponse D" /> </RadioGroup> </LinearLayout> </ScrollView> <LinearLayout android:id="@+id/navbar" android:layout_width="0dp" android:layout_height="wrap_content" android:orientation="horizontal" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/scrollView"> <Button android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="Entrer" /> </LinearLayout> </androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>