hygiene5_display.xml 3.47 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/hyg5"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <ImageView
        android:id="@+id/soap"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentStart="true"
        android:layout_margin="50dp"
        android:adjustViewBounds="true"
        android:maxWidth="150dp"
        android:src="@drawable/soap" />


    <ImageView
        android:id="@+id/shampoo"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_margin="50dp"
        android:adjustViewBounds="true"
        android:maxWidth="120dp"
        android:src="@drawable/shampoo" />

    <ImageView
        android:id="@+id/toothpaste"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/blue_toothbrush_pic"
        android:layout_centerHorizontal="true"
        android:layout_margin="50dp"
        android:adjustViewBounds="true"
        android:maxWidth="200dp"
        android:src="@drawable/toothpaste" />

    <ImageView
        android:id="@+id/blue_toothbrush_pic"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_margin="50dp"
        android:adjustViewBounds="true"
        android:maxWidth="200dp"
        android:src="@drawable/blue_toothbrush_pic" />

    <ImageView
        android:id="@+id/towel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/soap"
        android:layout_margin="50dp"
        android:adjustViewBounds="true"
        android:maxWidth="150dp"
        android:src="@drawable/towel" />

    <ImageView
        android:id="@+id/toilet_bag"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_below="@id/shampoo"
        android:layout_margin="50dp"
        android:adjustViewBounds="true"
        android:maxWidth="200dp"
        android:src="@drawable/toilet_bag" />

    <Button
        android:id="@+id/button_id_home"
        android:layout_width="80dp"
        android:layout_height="80dp"
        android:layout_alignParentBottom="true"
        android:layout_alignParentStart="true"
        android:layout_margin="10dp"
        android:background="@drawable/app_menu"
        android:onClick="backHome" />

    <TextView
        android:id="@+id/cons_hyg5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_margin="10dp"
        android:layout_toEndOf="@id/button_id_home"
        android:layout_toStartOf="@id/announce_instruction"
        android:gravity="center"
        android:textAppearance="@style/TextFont" />

    <Button
        android:id="@+id/announce_instruction"
        android:layout_width="80dp"
        android:layout_height="80dp"
        android:layout_alignParentBottom="true"
        android:layout_alignParentEnd="true"
        android:layout_margin="10dp"
        android:background="@drawable/speech_icon"
        android:onClick="enonceConsigne" />

</RelativeLayout>