Files
DEV/DEV.4.5/TP/TP1-MiseEnPage/relative_layout_activity_main.xml
T
2026-04-01 15:59:14 +02:00

40 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
>
<EditText
android:id="@+id/champPrincipal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginBottom="10dp"
android:background="@color/white"
/>
<EditText
android:id="@+id/champSecondaire"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:gravity="bottom"
android:layout_toStartOf="@+id/bouton"
android:layout_below="@id/champPrincipal"
/>
<Button
android:id="@+id/bouton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="5dp"
android:layout_below="@id/champPrincipal"
android:text="OK"
android:textSize="20sp"
/>
</RelativeLayout>