[Libreoffice-commits] core.git: android/source
aleksandar-stefanovic
theonewithideas at gmail.com
Sat Feb 25 09:28:23 UTC 2017
android/source/res/layout/file_list_item.xml | 1 +
android/source/res/values/themes.xml | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
New commits:
commit faeb982d2fc208a5beb22f75185b93bc3724ce03
Author: aleksandar-stefanovic <theonewithideas at gmail.com>
Date: Wed Feb 15 09:53:13 2017 +0100
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 at gmail.com>
Tested-by: Aleksandar Stefanović <theonewithideas at gmail.com>
diff --git a/android/source/res/layout/file_list_item.xml b/android/source/res/layout/file_list_item.xml
index a2dcfdb..6ffc928 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 4036d97..5b67264 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>
More information about the Libreoffice-commits
mailing list