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

    <LinearLayout
        android:id="@+id/linear51"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:weightSum="3">

        <ImageView
            android:id="@+id/anchor_blue_rectangle"
            android:layout_width="match_parent"
            android:layout_height="300dp"
            android:layout_weight="1"
            android:background="@drawable/blue_rectangle" />


        <ImageView
            android:id="@+id/anchor_red_rectangle"
            android:layout_width="match_parent"
            android:layout_height="300dp"
            android:layout_weight="1"
            android:background="@drawable/red_rectangle"
            android:nextFocusRight="@id/anchor_blue_rectangle" />

        <ImageView
            android:id="@+id/anchor_green_rectangle"
            android:layout_width="match_parent"
            android:layout_height="300dp"
            android:layout_weight="1"
            android:background="@drawable/green_rectangle"
            android:nextFocusRight="@id/anchor_red_rectangle" />

    </LinearLayout>

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


    <ImageView
        android:id="@+id/red_rectangle41"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/linear51"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/blue_rectangle41"
        android:background="@drawable/red_rectangle" />

    <ImageView
        android:id="@+id/green_rectangle41"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/linear51"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/red_rectangle41"
        android:background="@drawable/green_rectangle" />

    <ImageView
        android:id="@+id/blue_rectangle42"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/linear51"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/green_rectangle41"
        android:background="@drawable/blue_rectangle" />


    <ImageView
        android:id="@+id/red_rectangle42"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/linear51"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/blue_rectangle42"
        android:background="@drawable/red_rectangle" />

    <ImageView
        android:id="@+id/green_rectangle42"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/linear51"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/red_rectangle42"
        android:background="@drawable/green_rectangle" />


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

    <ImageView
        android:id="@+id/green_rectangle43"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/blue_rectangle41"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/red_rectangle43"
        android:background="@drawable/green_rectangle" />

    <ImageView
        android:id="@+id/blue_rectangle43"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/blue_rectangle41"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/green_rectangle43"
        android:background="@drawable/blue_rectangle" />


    <ImageView
        android:id="@+id/red_rectangle44"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/blue_rectangle41"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/blue_rectangle43"
        android:background="@drawable/red_rectangle" />

    <ImageView
        android:id="@+id/green_rectangle44"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/blue_rectangle41"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/red_rectangle44"
        android:background="@drawable/green_rectangle" />


    <ImageView
        android:id="@+id/blue_rectangle44"
        android:layout_width="70dp"
        android:layout_height="70dp"
        android:layout_below="@id/blue_rectangle41"
        android:layout_margin="50dp"
        android:layout_toEndOf="@id/green_rectangle44"
        android:background="@drawable/blue_rectangle" />

    <TextView
        android:id="@+id/text4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:layout_margin="20dp"
        android:text="Met les carrés dans les cases correspondantes."
        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="5dp"
        android:onClick="backHome"
        android:text="@string/home" />

</RelativeLayout>