diff options
| author | wqi <wqi@codeaurora.org> | 2016-05-11 13:50:38 +0800 |
|---|---|---|
| committer | Likai Ding <likaid@codeaurora.org> | 2016-06-14 14:55:17 +0800 |
| commit | 7866bab28d1597eab8a2af01e10546c9e1ac0a37 (patch) | |
| tree | d95543bc2baf83d50733d8ec61048cef67dbd1b7 /res | |
| parent | fb818215e1c091d58ddd30bcd9f9eb3f9f264538 (diff) | |
| download | android_packages_apps_Gallery2-7866bab28d1597eab8a2af01e10546c9e1ac0a37.tar.gz android_packages_apps_Gallery2-7866bab28d1597eab8a2af01e10546c9e1ac0a37.tar.bz2 android_packages_apps_Gallery2-7866bab28d1597eab8a2af01e10546c9e1ac0a37.zip | |
Gallery2: Fix toolbar title dispalyed abnormal.
The title of toolbar displayed abnormal when launch gallery in
landscape mode. adjust the style of toolbar keep display normal.
Change-Id: I081a73d24910a30d6ab2799b3c01b47ad617121d
CRs-Fixed: 1004530
Diffstat (limited to 'res')
| -rw-r--r-- | res/layout/toolbar.xml | 1 | ||||
| -rw-r--r-- | res/values/dimens.xml | 2 | ||||
| -rw-r--r-- | res/values/styles.xml | 6 |
3 files changed, 8 insertions, 1 deletions
diff --git a/res/layout/toolbar.xml b/res/layout/toolbar.xml index 0d1cea067..5616f1fcb 100644 --- a/res/layout/toolbar.xml +++ b/res/layout/toolbar.xml @@ -35,6 +35,7 @@ android:background="#e53935" android:elevation="4dp" android:theme="@style/ToolbarTheme" + android:titleTextAppearance="@style/ToolbarTitleStyle" android:popupTheme="@style/ToolbarPopUpTheme" android:navigationIcon="@drawable/drawer" > diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 14d619c14..845c53dd3 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -229,4 +229,6 @@ <dimen name="controller_indicator_padding_h">10dp</dimen> <dimen name="controller_indicator_icon_size">36dp</dimen> <dimen name="controller_indicator_text_size">16sp</dimen> + + <dimen name="toolbar_title_text_size">20dp</dimen> </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index 6d8d528f7..2508074cc 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -323,7 +323,11 @@ <item name="android:statusBarColor">#ab5810</item> </style> - <style name="ToolbarTheme" parent="android:Theme.Material" /> + <style name="ToolbarTheme" parent="android:Theme.Material"/> + + <style name="ToolbarTitleStyle" parent="android:TextAppearance.Material.Widget.Toolbar.Title"> + <item name="android:textSize">@dimen/toolbar_title_text_size</item> + </style> <style name="ToolbarPopUpTheme" parent="android:Theme.Material.Light" /> |
