From 51f4723b4fa9075c4197a7415619bec8f01d7684 Mon Sep 17 00:00:00 2001 From: SofianeLasri <alasri250@gmail.com> Date: Tue, 4 Oct 2022 16:14:06 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20et=20prep=20question=20d'ap?= =?UTF-8?q?r=C3=A8s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/res/layout/activity_main.xml | 55 ++++++++++++++++------- 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 1f6b0cc..30b3c7c 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 -- GitLab