Files
Android/Temperatures/app/src/main/res/layout/activity_main.xml
T
2026-03-22 13:57:47 +01:00

74 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginLeft="50dp"
android:layout_marginRight="50dp"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/layout_c"
>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/celsius"
android:hint="Température"
android:imeOptions="actionDone"
android:inputType="text"
android:layout_weight="90"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="℃"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/layout_c"
android:id="@+id/layout_f"
>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/fahrenheit"
android:hint="Température"
android:imeOptions="actionDone"
android:inputType="text"
android:layout_weight="90"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="℉"
android:layout_weight="1"
/>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>