activity_main.xml 5.06 KB
<?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"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context="ssrmarcsautelet.automation.appli.ssrmarcsautelet.MainActivity"
    android:background="@color/colorPrimaryDark">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/textView5" />

    <Button
        android:text="7 - 13 ans"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/age2"
        android:backgroundTint="@color/colorPrimary"
        android:layout_marginBottom="76dp"
        android:layout_above="@+id/savoir_plus"
        android:textColor="@android:color/background_light"
        android:textSize="@dimen/txtmenu"
        tools:ignore="HardcodedText,UnusedAttribute"
        android:onClick="send_age2"
        android:layout_alignRight="@+id/age1"
        android:layout_alignEnd="@+id/age1"
        android:layout_alignLeft="@+id/age1"
        android:layout_alignStart="@+id/age1" />

    <Button
        android:text="14 - 18 ans"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/age3"
        android:backgroundTint="@color/colorPrimary"
        android:layout_above="@+id/savoir_plus"
        android:layout_marginBottom="12dp"
        android:textColor="@android:color/background_light"
        android:textSize="@dimen/txtmenu"
        tools:ignore="HardcodedText,UnusedAttribute"
        android:onClick="send_age3"
        android:layout_alignLeft="@+id/age2"
        android:layout_alignStart="@+id/age2"
        android:layout_alignRight="@+id/age2"
        android:layout_alignEnd="@+id/age2" />

    <Button
        android:text="3 - 6 ans"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/age1"
        android:backgroundTint="@color/colorPrimary"
        android:layout_marginBottom="15dp"
        android:layout_above="@+id/age2"
        android:textColor="@android:color/background_light"
        android:textSize="@dimen/txtmenu"
        tools:ignore="HardcodedText,UnusedAttribute"
        android:onClick="send_age1"
        android:layout_alignRight="@+id/hop_jour"
        android:layout_alignEnd="@+id/hop_jour"
        android:layout_alignLeft="@+id/hop_jour"
        android:layout_alignStart="@+id/hop_jour" />

    <Button
        android:text="@string/en_savoir_plus"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/savoir_plus"
        android:backgroundTint="@color/colorPrimary"
        android:layout_marginBottom="26dp"
        android:textColor="@android:color/background_light"
        android:textSize="@dimen/txtmenu"
        tools:ignore="UnusedAttribute"
        android:onClick="send_savoirplus"
        android:layout_alignParentBottom="true"
        android:layout_alignLeft="@+id/age3"
        android:layout_alignStart="@+id/age3"
        android:layout_alignRight="@+id/age3"
        android:layout_alignEnd="@+id/age3" />

    <Button
        android:text="Hôpital de jour"
        android:backgroundTint="@color/colorPrimary"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="@android:color/background_light"
        android:id="@+id/hop_jour"
        android:textSize="@dimen/txtmenu"
        tools:ignore="HardcodedText,UnusedAttribute"
        android:layout_marginBottom="15dp"
        android:onClick="send_hop"
        android:layout_above="@+id/age1"
        android:layout_centerHorizontal="true" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:srcCompat="@drawable/image"
        android:id="@+id/imageView6"
        tools:ignore="RtlHardcoded"
        android:contentDescription="@string/ok"
        android:layout_marginTop="@dimen/hauteurimage"
        android:layout_below="@+id/textView5"
        android:layout_centerHorizontal="true" />

    <Button
        android:id="@+id/telechargement"
        android:backgroundTint="@color/colorPrimary"
        android:layout_width="wrap_content"
        android:textColor="@android:color/background_light"
        android:textSize="@dimen/txtmenu"
        tools:ignore="HardcodedText,UnusedAttribute"
        android:layout_height="wrap_content"
        android:text="MàJ"
        android:layout_alignBottom="@+id/savoir_plus"
        android:layout_alignRight="@+id/imageView6"
        android:layout_alignEnd="@+id/imageView6"
        android:onClick="demande_mdp"/>

</RelativeLayout>