Commit 97f92a027869712638f66afdfdca390b1f0ac858
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 | <?xml version="1.0" encoding="utf-8"?> | 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 | android:layout_height="wrap_content" | 4 | android:layout_height="wrap_content" |
5 | xmlns:tools="http://schemas.android.com/tools" | 5 | xmlns:tools="http://schemas.android.com/tools" |
6 | android:orientation="horizontal" | 6 | android:orientation="horizontal" |
7 | android:foreground="?attr/selectableItemBackground"> | 7 | android:foreground="?attr/selectableItemBackground"> |
8 | 8 | ||
9 | - | ||
10 | <TextView | 9 | <TextView |
11 | android:id="@+id/personne_login" | 10 | android:id="@+id/personne_login" |
12 | - android:layout_width="wrap_content" | 11 | + android:layout_width="match_parent" |
13 | android:layout_height="wrap_content" | 12 | android:layout_height="wrap_content" |
14 | android:layout_margin="@dimen/text_margin" | 13 | android:layout_margin="@dimen/text_margin" |
15 | - android:textAppearance="?attr/textAppearanceListItem" /> | 14 | + android:textAppearance="?attr/textAppearanceListItem" |
15 | + android:layout_weight="2"/> | ||
16 | <TextView | 16 | <TextView |
17 | android:id="@+id/personne_carte" | 17 | android:id="@+id/personne_carte" |
18 | - android:layout_width="wrap_content" | 18 | + android:layout_width="match_parent" |
19 | android:layout_height="wrap_content" | 19 | android:layout_height="wrap_content" |
20 | android:layout_margin="@dimen/text_margin" | 20 | android:layout_margin="@dimen/text_margin" |
21 | android:textAppearance="?attr/textAppearanceListItem" | 21 | android:textAppearance="?attr/textAppearanceListItem" |
22 | - android:layout_toEndOf="@id/personne_login"/> | 22 | + android:layout_weight="2"/> |
23 | <TextView | 23 | <TextView |
24 | android:id="@+id/personne_role" | 24 | android:id="@+id/personne_role" |
25 | - android:layout_width="wrap_content" | 25 | + android:layout_width="match_parent" |
26 | android:layout_height="wrap_content" | 26 | android:layout_height="wrap_content" |
27 | android:layout_margin="@dimen/text_margin" | 27 | android:layout_margin="@dimen/text_margin" |
28 | android:textAppearance="?attr/textAppearanceListItem" | 28 | android:textAppearance="?attr/textAppearanceListItem" |
29 | - android:layout_toEndOf="@id/personne_carte"/> | 29 | + android:layout_weight="2"/> |
30 | <TextView | 30 | <TextView |
31 | android:id="@+id/personne_solde" | 31 | android:id="@+id/personne_solde" |
32 | - android:layout_width="wrap_content" | 32 | + android:layout_width="match_parent" |
33 | android:layout_height="wrap_content" | 33 | android:layout_height="wrap_content" |
34 | android:layout_margin="@dimen/text_margin" | 34 | android:layout_margin="@dimen/text_margin" |
35 | android:textAppearance="?attr/textAppearanceListItem" | 35 | android:textAppearance="?attr/textAppearanceListItem" |
36 | - android:layout_toEndOf="@id/personne_solde"/> | 36 | + android:layout_weight="2"/> |
37 | 37 | ||
38 | <TextView | 38 | <TextView |
39 | android:id="@+id/personne_options" | 39 | android:id="@+id/personne_options" |
@@ -46,6 +46,7 @@ | @@ -46,6 +46,7 @@ | ||
46 | tools:ignore="RtlHardcoded,RtlSymmetry" | 46 | tools:ignore="RtlHardcoded,RtlSymmetry" |
47 | android:textStyle="normal|bold" | 47 | android:textStyle="normal|bold" |
48 | android:translationY="10dp" | 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> |