Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 android:layout_width="fill_parent" | 3 android:layout_width="fill_parent" |
4 android:layout_height="wrap_content" | 4 android:layout_height="wrap_content" |
5 android:minHeight="?android:attr/listPreferredItemHeight" | 5 android:minHeight="?android:attr/listPreferredItemHeight" |
6 android:gravity="center_vertical" | 6 android:gravity="center_vertical" |
7 android:paddingRight="?android:attr/scrollbarSize" > | 7 android:paddingRight="?android:attr/scrollbarSize" > |
8 | 8 |
9 <LinearLayout | 9 <LinearLayout |
10 android:layout_width="match_parent" | 10 android:layout_width="match_parent" |
11 android:layout_height="wrap_content" | 11 android:layout_height="wrap_content" |
12 android:layout_marginStart="6dip" | 12 android:layout_margin="6dip" |
Felix Dahlke
2015/07/26 17:06:22
Does marginStart/End actually work here? How I und
René Jeschke
2015/07/28 10:55:26
Done.
| |
13 android:layout_marginEnd="6dip" | |
14 android:layout_marginTop="6dip" | |
15 android:layout_marginBottom="6dip" | |
16 android:orientation="horizontal" > | 13 android:orientation="horizontal" > |
17 | 14 |
18 <TextView android:id="@+android:id/title" | 15 <TextView android:id="@+android:id/title" |
19 android:layout_width="wrap_content" | 16 android:layout_width="wrap_content" |
20 android:layout_height="wrap_content" | 17 android:layout_height="wrap_content" |
21 android:singleLine="true" | 18 android:singleLine="true" |
22 android:textAppearance="?android:attr/textAppearanceMedium" | 19 android:textAppearance="?android:attr/textAppearanceMedium" |
23 android:textColor="#0099cc" | 20 android:textColor="#0099cc" |
24 android:ellipsize="marquee" | 21 android:ellipsize="marquee" |
25 android:fadingEdge="horizontal" | 22 android:fadingEdge="horizontal" |
26 android:layout_weight="1" | 23 android:layout_weight="1" |
27 android:gravity="left" /> | 24 android:gravity="left" /> |
28 | 25 |
29 <TextView android:layout_width="wrap_content" | 26 <TextView android:layout_width="wrap_content" |
30 android:layout_height="wrap_content" | 27 android:layout_height="wrap_content" |
31 android:paddingRight="10dp" | 28 android:paddingRight="10dp" |
32 android:textAppearance="?android:attr/textAppearanceLarge" | 29 android:textAppearance="?android:attr/textAppearanceLarge" |
33 android:textColor="#9a9a9a" | 30 android:textColor="#9a9a9a" |
34 android:text=">" | 31 android:text=">" |
35 android:gravity="right" /> | 32 android:gravity="right" /> |
36 | 33 |
37 </LinearLayout> | 34 </LinearLayout> |
38 | 35 |
39 </LinearLayout> | 36 </LinearLayout> |
40 | 37 |
LEFT | RIGHT |