activity_main.xml 2.98 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/layoutMain"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ImageButton
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:id="@+id/download"
        android:adjustViewBounds="true"
        android:src="@drawable/dl"
        android:background="@color/colorPrimary"
        android:scaleType="fitCenter"
        android:layout_alignParentLeft="true"
        android:onClick="onClickDownload"/>

    <ImageButton
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_alignParentRight="true"
        android:src="@drawable/vomi"
        android:adjustViewBounds="true"
        android:background="@color/colorPrimary"
        android:scaleType="fitCenter"
        android:onClick="onClickVomi"/>

    <TextView
        android:id="@+id/text1"
        android:layout_width="match_parent"
        android:layout_below="@id/download"
        android:layout_height="wrap_content"
        android:text="@string/menu1"
        android:textSize="25dp"
        android:layout_marginBottom="5dp"
        android:textColor="@color/colorAccent"/>

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/présence"
        android:textColor="@color/colorAccent"
        android:layout_below="@+id/text1"/>

    <ListView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/list1"
        android:layout_below="@+id/text1"
        android:layout_above="@+id/layout1_1"/>

    <LinearLayout
        android:id="@+id/layout1_1"
        android:layout_width="match_parent"
        android:layout_height="160dp"
        android:layout_alignParentBottom="true"
        android:layout_margin="2dp"
        android:orientation="horizontal">

        <ImageButton
            android:id="@+id/boutonMedoc"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:adjustViewBounds="true"
            android:background="@color/colorPrimaryDark"
            android:scaleType="fitCenter"
            android:src="@drawable/pills"
            android:onClick="onClickGestionMedoc"/>

        <ImageButton
            android:id="@+id/boutonHistorique"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginLeft="5dp"
            android:layout_weight="1"
            android:onClick="onClickHistorique"
            android:adjustViewBounds="true"
            android:background="@color/colorPrimaryDark"
            android:scaleType="fitCenter"
            android:src="@drawable/schedule" />
    </LinearLayout>
</RelativeLayout>