diff options
author | Nancy Chen <nancychen@google.com> | 2014-07-28 16:34:59 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2014-07-28 16:34:59 -0700 |
commit | 5d5b6042a71ffc02e5f0bc6996348dd6ee96bb23 (patch) | |
tree | a40572a96ecd3bc71d67ef5fd733a808a6f81bd7 /res | |
parent | b8170de2a2d0e5cd3812720fe50616fae319413c (diff) |
Shift actionbar title to the 72dp line.
Action bar title should be shifted to the right.
Bug: 16627750
Change-Id: Ief0cb6dc49d5067aa5448a8cbaa21e6cb96b9bf5
Diffstat (limited to 'res')
-rw-r--r-- | res/values/dimens.xml | 1 | ||||
-rw-r--r-- | res/values/styles.xml | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 752fffc4c..1fb1bd0cf 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -89,6 +89,7 @@ <dimen name="tab_height">43dp</dimen> <!-- actionbar height + tab height --> <dimen name="actionbar_and_tab_height">107dp</dimen> + <dimen name="actionbar_contentInsetStart">72dp</dimen> <!-- Margin to the left and right of the search box. --> <dimen name="search_margin_horizontal">8dp</dimen> diff --git a/res/values/styles.xml b/res/values/styles.xml index 4f4cb18ff..9601a4b9e 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -123,12 +123,15 @@ <item name="android:height">@dimen/action_bar_height</item> <!-- Empty icon --> <item name="android:icon">@android:color/transparent</item> - <item name="android:contentInsetStart">0px</item> + <!-- Shift the title text to the right --> + <item name="android:contentInsetStart">@dimen/actionbar_contentInsetStart</item> </style> <style name="DialtactsActionBarWithoutTitleStyle" parent="DialtactsActionBarStyle"> <item name="android:displayOptions"></item> <item name="android:height">@dimen/action_bar_height_large</item> + <!-- Override ActionBar title offset to keep search box aligned left --> + <item name="android:contentInsetStart">0px</item> </style> <!-- Text in the action bar at the top of the screen --> |