|
2 | 2 | <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 3 | xmlns:tools="http://schemas.android.com/tools" |
4 | 4 | android:id="@+id/item_frame" |
5 | | - android:layout_width="wrap_content" |
| 5 | + android:layout_width="match_parent" |
6 | 6 | android:layout_height="wrap_content" |
7 | 7 | android:background="?attr/selectableItemBackground" |
8 | 8 | android:clickable="true" |
|
15 | 15 | android:id="@+id/item_holder" |
16 | 16 | android:layout_width="match_parent" |
17 | 17 | android:layout_height="wrap_content" |
18 | | - android:paddingEnd="@dimen/activity_margin"> |
| 18 | + android:layout_marginBottom="@dimen/normal_margin"> |
19 | 19 |
|
20 | 20 | <ImageView |
21 | 21 | android:id="@+id/item_icon" |
22 | | - android:layout_width="@dimen/file_picker_icon_size" |
23 | | - android:layout_height="@dimen/file_picker_icon_size" |
24 | | - android:layout_centerVertical="true" |
25 | | - android:padding="@dimen/medium_margin" |
| 22 | + android:layout_width="@dimen/grid_view_icon_size" |
| 23 | + android:layout_height="@dimen/grid_view_icon_size" |
| 24 | + android:layout_centerHorizontal="true" |
26 | 25 | android:src="@drawable/ic_folder_vector" /> |
27 | 26 |
|
28 | 27 | <TextView |
29 | 28 | android:id="@+id/item_name" |
30 | | - android:layout_width="wrap_content" |
| 29 | + android:layout_width="match_parent" |
31 | 30 | android:layout_height="wrap_content" |
32 | 31 | android:layout_below="@+id/item_icon" |
33 | 32 | android:ellipsize="end" |
34 | | - android:maxLines="2" |
35 | | - android:paddingStart="@dimen/tiny_margin" |
36 | | - android:paddingTop="@dimen/small_margin" |
| 33 | + android:gravity="center_horizontal" |
| 34 | + android:maxLines="1" |
| 35 | + android:paddingStart="@dimen/medium_margin" |
| 36 | + android:paddingEnd="@dimen/medium_margin" |
37 | 37 | tools:text="Directory" /> |
38 | 38 |
|
39 | 39 | </RelativeLayout> |
|
0 commit comments