summaryrefslogtreecommitdiff
path: root/res/values
diff options
context:
space:
mode:
Diffstat (limited to 'res/values')
-rw-r--r--res/values/dimens.xml1
-rw-r--r--res/values/styles.xml5
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 -->