Improve dictionary download activity layout
CHANGELOG.md
18 | 18 | ||
19 | 19 | * Fix white on white text display on some older devices. | |
20 | 20 | * Fix alignment in dictionary list. | |
21 | + | * Small alignment and size fixes in dictionary download screen. | |
21 | 22 | ||
22 | 23 | ### Features | |
23 | 24 |
app/src/main/res/layout/activity_dictionary_download.xml
22 | 22 | ||
23 | 23 | <ImageView | |
24 | 24 | android:id="@+id/icon_view" | |
25 | - | android:layout_width="wrap_content" | |
26 | - | android:layout_height="wrap_content" | |
25 | + | android:layout_width="64dp" | |
26 | + | android:layout_height="64dp" | |
27 | 27 | android:layout_weight="0" | |
28 | 28 | app:srcCompat="@android:drawable/ic_menu_close_clear_cancel" /> | |
29 | 29 | ||
30 | 30 | <TextView | |
31 | 31 | android:id="@+id/name_view" | |
32 | - | android:layout_width="wrap_content" | |
32 | + | android:layout_width="match_parent" | |
33 | 33 | android:layout_height="wrap_content" | |
34 | 34 | android:layout_margin="8dp" | |
35 | 35 | android:layout_weight="1" | |
36 | + | android:textAlignment="center" | |
37 | + | android:layout_gravity="center" | |
36 | 38 | android:text="Name" /> | |
37 | 39 | ||
38 | 40 | </LinearLayout> | |
… | |||
98 | 100 | android:layout_gravity="center" | |
99 | 101 | android:layout_margin="8dp" | |
100 | 102 | android:layout_weight="0" | |
103 | + | android:maxHeight="64dp" | |
104 | + | android:maxWidth="64dp" | |
105 | + | android:minHeight="64dp" | |
106 | + | android:minWidth="64dp" | |
101 | 107 | android:background="#00ffffff" | |
102 | 108 | app:srcCompat="@android:drawable/arrow_down_float" /> | |
103 | 109 | </LinearLayout> |