Skip to content

Commit 03b0147

Browse files
committed
make sure the file thumbnail is always centered vertically
1 parent 10f7e08 commit 03b0147

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/src/main/res/layout/item_list_file_dir.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<FrameLayout
3-
xmlns:android="http://schemas.android.com/apk/res/android"
2+
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
43
xmlns:tools="http://schemas.android.com/tools"
54
android:id="@+id/item_frame"
65
android:layout_width="match_parent"
@@ -20,8 +19,9 @@
2019
android:id="@+id/item_icon"
2120
android:layout_width="@dimen/normal_icon_size"
2221
android:layout_height="@dimen/normal_icon_size"
22+
android:layout_centerVertical="true"
2323
android:padding="@dimen/medium_margin"
24-
android:src="@drawable/ic_folder_vector"/>
24+
android:src="@drawable/ic_folder_vector" />
2525

2626
<TextView
2727
android:id="@+id/item_name"
@@ -33,7 +33,7 @@
3333
android:maxLines="1"
3434
android:paddingStart="@dimen/small_margin"
3535
android:paddingTop="@dimen/small_margin"
36-
tools:text="Directory"/>
36+
tools:text="Directory" />
3737

3838
<TextView
3939
android:id="@+id/item_details"
@@ -44,7 +44,7 @@
4444
android:alpha="0.6"
4545
android:paddingStart="@dimen/small_margin"
4646
android:textSize="@dimen/smaller_text_size"
47-
tools:text="1 KB"/>
47+
tools:text="1 KB" />
4848

4949
<TextView
5050
android:id="@+id/item_date"
@@ -56,7 +56,7 @@
5656
android:alpha="0.6"
5757
android:gravity="end"
5858
android:textSize="@dimen/smaller_text_size"
59-
tools:text="1.1.1970"/>
59+
tools:text="1.1.1970" />
6060

6161
</RelativeLayout>
6262
</FrameLayout>

0 commit comments

Comments
 (0)