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

    <ImageView
        android:id="@+id/blue_rectangle51"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_alignParentStart="true"
        android:layout_margin="50dp"
        android:background="@drawable/blue_rectangle" />


    <ImageView
        android:id="@+id/red_rectangle51"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/blue_rectangle51"
        android:background="@drawable/red_rectangle" />

    <ImageView
        android:id="@+id/green_rectangle51"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/red_rectangle51"
        android:background="@drawable/green_rectangle" />

    <ImageView
        android:id="@+id/blue_rectangle52"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/green_rectangle51"
        android:background="@drawable/blue_rectangle" />


    <ImageView
        android:id="@+id/red_rectangle52"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/blue_rectangle52"
        android:background="@drawable/red_rectangle" />

    <ImageView
        android:id="@+id/green_rectangle52"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/red_rectangle52"
        android:background="@drawable/green_rectangle" />


    <ImageView
        android:id="@+id/red_rectangle53"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_alignParentStart="true"
        android:layout_below="@id/blue_rectangle51"
        android:layout_margin="50dp"
        android:background="@drawable/red_rectangle" />

    <ImageView
        android:id="@+id/green_rectangle53"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/blue_rectangle51"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/red_rectangle53"
        android:background="@drawable/green_rectangle" />

    <ImageView
        android:id="@+id/blue_rectangle53"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/blue_rectangle51"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/green_rectangle53"
        android:background="@drawable/blue_rectangle" />


    <ImageView
        android:id="@+id/red_rectangle54"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/blue_rectangle51"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/blue_rectangle53"
        android:background="@drawable/red_rectangle" />

    <ImageView
        android:id="@+id/green_rectangle54"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/blue_rectangle51"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/red_rectangle54"
        android:background="@drawable/green_rectangle" />


    <ImageView
        android:id="@+id/blue_rectangle54"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/blue_rectangle51"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/green_rectangle54"
        android:background="@drawable/blue_rectangle" />

    <TextView
        android:id="@+id/cons_tut5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:layout_margin="20dp"
        android:maxWidth="650dp"
        android:textAppearance="@style/TextFont" />


    <Button
        android:id="@+id/button_id_home"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentStart="true"
        android:layout_margin="20dp"
        android:onClick="backHome"
        android:text="@string/home"
        android:textAppearance="@style/TextFont" />

    <Button
        android:id="@+id/announce_instruction"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentEnd="true"
        android:layout_margin="20dp"
        android:onClick="enonceConsigne"
        android:text="@string/instruction"
        android:textAppearance="@style/TextFont" />
</RelativeLayout>