diff options
author | Siqi Liu <me@siqi.fr> | 2015-04-23 13:43:49 +0200 |
---|---|---|
committer | Siqi Liu <me@siqi.fr> | 2015-04-23 15:31:15 +0200 |
commit | 72f023fc9759df28ffb2df7e32a4d877145ebe4d (patch) | |
tree | 94499f1c583b5027104d31f8011de88a3dab86bc /android | |
parent | c9baf39df68afc17adcf4fe23245912e57ff5477 (diff) |
refactor xml styling for listview texts
Change-Id: Id52d33807c34b0fa12bc563ed479f5519103c8fe
Diffstat (limited to 'android')
-rw-r--r-- | android/experimental/LOAndroid3/res/layout/file_list_item.xml | 24 | ||||
-rw-r--r-- | android/experimental/LOAndroid3/res/values/themes.xml | 6 |
2 files changed, 15 insertions, 15 deletions
diff --git a/android/experimental/LOAndroid3/res/layout/file_list_item.xml b/android/experimental/LOAndroid3/res/layout/file_list_item.xml index 91d84fdf6f5d..17590fc7bfb4 100644 --- a/android/experimental/LOAndroid3/res/layout/file_list_item.xml +++ b/android/experimental/LOAndroid3/res/layout/file_list_item.xml @@ -21,27 +21,21 @@ android:orientation="horizontal"> <TextView android:id="@+id/file_list_item_name" - android:layout_height="48dp" + style="@style/ListItemText" + android:layout_height="match_parent" android:layout_width="0dp" - android:textSize="15dp" - android:textStyle="bold" - android:layout_weight="2" - android:gravity="center"/> + android:layout_weight="2" /> <TextView android:id="@+id/file_list_item_size" - android:layout_height="48dp" + style="@style/ListItemText" + android:layout_height="match_parent" android:layout_width="0dp" - android:textSize="15dp" - android:textStyle="bold" - android:layout_weight="1" - android:gravity="center"/> + android:layout_weight="1" /> <TextView android:id="@+id/file_list_item_date" - android:layout_height="48dp" + style="@style/ListItemText" + android:layout_height="match_parent" android:layout_width="0dp" - android:textSize="15dp" - android:textStyle="bold" - android:layout_weight="2" - android:gravity="center"/> + android:layout_weight="2" /> </LinearLayout> </LinearLayout> diff --git a/android/experimental/LOAndroid3/res/values/themes.xml b/android/experimental/LOAndroid3/res/values/themes.xml index 478aeb7eef06..2b9e9f13749f 100644 --- a/android/experimental/LOAndroid3/res/values/themes.xml +++ b/android/experimental/LOAndroid3/res/values/themes.xml @@ -9,4 +9,10 @@ <style name="BrowserTheme" parent="Theme.AppCompat.Light.NoActionBar"> </style> + + <style name="ListItemText"> + <item name="android:gravity">center</item> + <item name="android:textColor">@android:color/black</item> + <item name="android:textSize">15sp</item> + </style> </resources> |