Commit 97f92a027869712638f66afdfdca390b1f0ac858

Authored by badetitou
1 parent c1841aa9

Design List Personne

Showing 1 changed file with 14 additions and 13 deletions   Show diff stats
app/src/main/res/layout/fragment_personne.xml
1 1 <?xml version="1.0" encoding="utf-8"?>
2   -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3   - android:layout_width="wrap_content"
  2 +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3 + android:layout_width="match_parent"
4 4 android:layout_height="wrap_content"
5 5 xmlns:tools="http://schemas.android.com/tools"
6 6 android:orientation="horizontal"
7 7 android:foreground="?attr/selectableItemBackground">
8 8  
9   -
10 9 <TextView
11 10 android:id="@+id/personne_login"
12   - android:layout_width="wrap_content"
  11 + android:layout_width="match_parent"
13 12 android:layout_height="wrap_content"
14 13 android:layout_margin="@dimen/text_margin"
15   - android:textAppearance="?attr/textAppearanceListItem" />
  14 + android:textAppearance="?attr/textAppearanceListItem"
  15 + android:layout_weight="2"/>
16 16 <TextView
17 17 android:id="@+id/personne_carte"
18   - android:layout_width="wrap_content"
  18 + android:layout_width="match_parent"
19 19 android:layout_height="wrap_content"
20 20 android:layout_margin="@dimen/text_margin"
21 21 android:textAppearance="?attr/textAppearanceListItem"
22   - android:layout_toEndOf="@id/personne_login"/>
  22 + android:layout_weight="2"/>
23 23 <TextView
24 24 android:id="@+id/personne_role"
25   - android:layout_width="wrap_content"
  25 + android:layout_width="match_parent"
26 26 android:layout_height="wrap_content"
27 27 android:layout_margin="@dimen/text_margin"
28 28 android:textAppearance="?attr/textAppearanceListItem"
29   - android:layout_toEndOf="@id/personne_carte"/>
  29 + android:layout_weight="2"/>
30 30 <TextView
31 31 android:id="@+id/personne_solde"
32   - android:layout_width="wrap_content"
  32 + android:layout_width="match_parent"
33 33 android:layout_height="wrap_content"
34 34 android:layout_margin="@dimen/text_margin"
35 35 android:textAppearance="?attr/textAppearanceListItem"
36   - android:layout_toEndOf="@id/personne_solde"/>
  36 + android:layout_weight="2"/>
37 37  
38 38 <TextView
39 39 android:id="@+id/personne_options"
... ... @@ -46,6 +46,7 @@
46 46 tools:ignore="RtlHardcoded,RtlSymmetry"
47 47 android:textStyle="normal|bold"
48 48 android:translationY="10dp"
49   - android:layout_alignParentRight="true" />
  49 + android:layout_gravity="right"
  50 + android:layout_weight="0"/>
50 51  
51   -</RelativeLayout>
  52 +</LinearLayout>
... ...