Blame view

partieAndroid/res/layout/medoc.xml 1.79 KB
b8e00f52   martin.rohmer   mise à dispositio...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  <?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>