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
diff --git a/res/layout/toolbar.xml b/res/layout/toolbar.xml
index 0d1cea0..5616f1f 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 14d619c..845c53d 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 6d8d528..2508074 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" />