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

    <ImageView
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:id="@+id/logo"
        android:adjustViewBounds="true"
        android:background="@color/colorPrimaryDark"
        android:scaleType="fitCenter"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"/>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/nom1"
        android:layout_toRightOf="@id/logo"
        android:layout_alignTop="@id/logo"
        android:textSize="25dp"
        android:layout_marginLeft="5dp"
        android:textColor="@color/colorAccent"/>

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/nom2"
        android:layout_below="@id/nom1"
        android:textSize="20dp"
        android:layout_alignBottom="@id/logo"
        android:layout_toRightOf="@id/logo"
        android:layout_marginLeft="5dp"/>

    <ImageButton
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:id="@+id/boutonModif"
        android:gravity="center_horizontal"
        android:checked="false"
        android:src="@drawable/edit"
        android:adjustViewBounds="true"
        android:background="@color/colorPrimary"
        android:scaleType="fitCenter"
        android:layout_below="@+id/nom1"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="true" />

</RelativeLayout>