diff options
author | aleksandar-stefanovic <theonewithideas@gmail.com> | 2017-02-15 09:53:13 +0100 |
---|---|---|
committer | Aleksandar Stefanović <theonewithideas@gmail.com> | 2017-02-25 09:27:56 +0000 |
commit | faeb982d2fc208a5beb22f75185b93bc3724ce03 (patch) | |
tree | 06f737ef1361c42b3042f65eefb5d1bc31a2c3f2 /android | |
parent | 0203b6be4bb397165d7c6c354e75409164a0e360 (diff) |
Fixed text alignment in list
Changed text alignment in file browser to not center horizontally,
because it should be glanceable and therefore should be left-aligned
(ideally the start-aligned).
See https://material.io/guidelines/components/lists.html .
Change-Id: I383141bc2f49b63927c136d911f50cfd15bdef45
Reviewed-on: https://gerrit.libreoffice.org/34290
Reviewed-by: Aleksandar Stefanović <theonewithideas@gmail.com>
Tested-by: Aleksandar Stefanović <theonewithideas@gmail.com>
Diffstat (limited to 'android')
-rw-r--r-- | android/source/res/layout/file_list_item.xml | 1 | ||||
-rw-r--r-- | android/source/res/values/themes.xml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/android/source/res/layout/file_list_item.xml b/android/source/res/layout/file_list_item.xml index a2dcfdbaba59..6ffc9282c45d 100644 --- a/android/source/res/layout/file_list_item.xml +++ b/android/source/res/layout/file_list_item.xml @@ -52,6 +52,7 @@ android:layout_width="0dp" android:layout_weight="2" android:ellipsize="end" + android:gravity="end" android:maxLines="1"/> </LinearLayout> </LinearLayout> diff --git a/android/source/res/values/themes.xml b/android/source/res/values/themes.xml index 4036d97e57ba..5b672642be0b 100644 --- a/android/source/res/values/themes.xml +++ b/android/source/res/values/themes.xml @@ -6,7 +6,7 @@ </style> <style name="ListItemText"> - <item name="android:gravity">center</item> + <item name="android:gravity">center_vertical</item> <item name="android:textColor">@android:color/black</item> <item name="android:textSize">14sp</item> </style> |