diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 1f6b0cc42ff2e5327ed6cc80216af441c1ccf204..30b3c7c04fecd74383a20aca9c354a787ae3737a 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -6,27 +6,48 @@ android:layout_height="match_parent" tools:context=".MainActivity"> - <EditText - android:id="@+id/textInput" + <androidx.constraintlayout.widget.ConstraintLayout + android:id="@+id/firstLayout" android:layout_width="0dp" - android:layout_height="60dp" - android:ems="10" - android:inputType="textPersonName" - android:text="Name" - app:layout_constraintBottom_toTopOf="@+id/button" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" + android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="parent" - android:hint="Tapez une question" /> + 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="Button" + <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_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@+id/textInput" /> + app:layout_constraintEnd_toEndOf="parent"> + + </androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file