Skip to content

Commit 16bc1e5

Browse files
authored
Fix Widget in Landscape (#50)
1 parent b277559 commit 16bc1e5

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
android:layout_width="match_parent"
1515
android:layout_height="wrap_content"
1616
android:layout_gravity="center_vertical"
17+
android:layout_marginStart="4dp"
1718
android:layout_marginEnd="128dp"
1819
android:columnCount="2">
1920

2021
<ImageView
21-
android:layout_width="18dp"
22-
android:layout_height="18dp"
22+
android:layout_width="16dp"
23+
android:layout_height="16dp"
2324
android:layout_marginTop="1dp"
2425
android:layout_marginEnd="2dp"
2526
android:layout_gravity="center_vertical"
@@ -30,30 +31,32 @@
3031
android:layout_width="match_parent"
3132
android:layout_height="wrap_content"
3233
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
33-
android:textSize="20sp"
34+
android:textSize="18sp"
35+
android:includeFontPadding="false"
3436
android:maxLines="1"
3537
android:text="0"
3638
tools:text="0123456789" />
3739

3840
<ImageView
39-
android:layout_width="18dp"
40-
android:layout_height="18dp"
41+
android:layout_width="16dp"
42+
android:layout_height="16dp"
4143
android:layout_marginTop="1dp"
4244
android:layout_gravity="center_vertical"
4345
android:contentDescription="Files Size"
4446
android:src="@drawable/md_storage_24px" />
4547
<LinearLayout
4648
android:layout_width="match_parent"
47-
android:layout_height="match_parent">
49+
android:layout_height="wrap_content">
4850
<TextView
4951
android:id="@+id/files_size"
5052
android:layout_width="wrap_content"
5153
android:layout_height="wrap_content"
5254
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
53-
android:textSize="20sp"
55+
android:textSize="18sp"
56+
android:includeFontPadding="false"
5457
android:maxLines="1"
5558
android:text="0"
56-
tools:text="9.99" />
59+
tools:text="9,999.99" />
5760

5861
<TextView
5962
android:id="@+id/files_unit"

0 commit comments

Comments
 (0)