|
1 | | -<LinearLayout |
2 | | - xmlns:android="http://schemas.android.com/apk/res/android" |
3 | | - xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | | - xmlns:tools="http://schemas.android.com/tools" |
5 | | - android:layout_width="match_parent" |
6 | | - android:layout_height="match_parent" |
7 | | - android:orientation="vertical"> |
8 | | - <LinearLayout |
9 | | - android:id="@+id/background" |
10 | | - android:layout_width="match_parent" |
11 | | - android:layout_height="wrap_content" |
12 | | - android:layout_margin="5dp" |
13 | | - android:orientation="horizontal"> |
14 | | - <LinearLayout |
15 | | - android:id="@+id/icon_background" |
16 | | - android:layout_width="25dp" |
17 | | - android:layout_height="25dp" |
18 | | - android:layout_marginLeft="6dp" |
19 | | - android:layout_marginTop="4dp" |
20 | | - android:layout_marginRight="4dp" |
21 | | - android:layout_marginBottom="4dp" |
22 | | - android:background="#252525" |
23 | | - android:gravity="center_horizontal|center_vertical" |
24 | | - android:orientation="vertical"> |
25 | | - <ImageView |
26 | | - android:id="@+id/imageview1" |
27 | | - android:focusable="false" |
28 | | - android:layout_width="15dp" |
29 | | - android:layout_height="15dp" |
30 | | - android:src="@drawable/default_image" |
31 | | - android:scaleType="fitCenter" |
32 | | - android:layout_gravity="center_horizontal|center_vertical" /> |
33 | | - </LinearLayout> |
34 | | - <TextView |
35 | | - android:id="@+id/name" |
36 | | - android:focusable="false" |
37 | | - android:layout_width="wrap_content" |
38 | | - android:layout_height="wrap_content" |
39 | | - android:padding="8dp" |
40 | | - android:gravity="left|center_vertical" |
41 | | - android:text="TextView" |
42 | | - android:textSize="14sp" |
43 | | - android:textStyle="bold" |
44 | | - android:textColor="#000000" |
45 | | - android:layout_gravity="center_horizontal|center_vertical" /> |
46 | | - </LinearLayout> |
47 | | -</LinearLayout> |
| 1 | +<LinearLayout |
| 2 | + xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="match_parent" |
| 7 | + android:orientation="vertical"> |
| 8 | + <LinearLayout |
| 9 | + android:id="@+id/linear_bg" |
| 10 | + android:layout_width="match_parent" |
| 11 | + android:layout_height="wrap_content" |
| 12 | + android:layout_marginLeft="5dp" |
| 13 | + android:layout_marginTop="2dp" |
| 14 | + android:layout_marginRight="5dp" |
| 15 | + android:layout_marginBottom="2dp" |
| 16 | + android:orientation="horizontal"> |
| 17 | + <LinearLayout |
| 18 | + android:id="@+id/icon_background" |
| 19 | + android:layout_width="22dp" |
| 20 | + android:layout_height="22dp" |
| 21 | + android:layout_marginLeft="6dp" |
| 22 | + android:layout_marginTop="4dp" |
| 23 | + android:layout_marginRight="4dp" |
| 24 | + android:layout_marginBottom="4dp" |
| 25 | + android:background="#252525" |
| 26 | + android:gravity="center_horizontal|center_vertical" |
| 27 | + android:orientation="vertical" |
| 28 | + android:layout_gravity="center_horizontal|center_vertical"> |
| 29 | + <ImageView |
| 30 | + android:id="@+id/imageview1" |
| 31 | + android:focusable="false" |
| 32 | + android:layout_width="12dp" |
| 33 | + android:layout_height="12dp" |
| 34 | + android:src="@drawable/default_image" |
| 35 | + android:scaleType="fitCenter" |
| 36 | + android:layout_gravity="center_horizontal|center_vertical" /> |
| 37 | + </LinearLayout> |
| 38 | + <TextView |
| 39 | + android:id="@+id/name" |
| 40 | + android:focusable="false" |
| 41 | + android:layout_width="wrap_content" |
| 42 | + android:layout_height="wrap_content" |
| 43 | + android:padding="8dp" |
| 44 | + android:gravity="left|center_vertical" |
| 45 | + android:text="TextView" |
| 46 | + android:textSize="14sp" |
| 47 | + android:textStyle="bold" |
| 48 | + android:textColor="#000000" |
| 49 | + android:layout_gravity="center_horizontal|center_vertical" /> |
| 50 | + </LinearLayout> |
| 51 | +</LinearLayout> |
0 commit comments