[Android] Restore Action bar size to fix alignment

Geoffrey Métais git at videolan.org
Wed Apr 1 18:14:50 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr  1 18:12:55 2015 +0200| [355c4582bf44c5638752bd30a5d61c724f5d3347] | committer: Geoffrey Métais

Restore Action bar size to fix alignment

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=355c4582bf44c5638752bd30a5d61c724f5d3347
---

 vlc-android/res/layout/toolbar.xml |    2 +-
 vlc-android/res/values/styles.xml  |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/res/layout/toolbar.xml b/vlc-android/res/layout/toolbar.xml
index 5306785..1140180 100644
--- a/vlc-android/res/layout/toolbar.xml
+++ b/vlc-android/res/layout/toolbar.xml
@@ -4,7 +4,7 @@
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:id="@+id/main_toolbar"
     android:layout_width="match_parent"
-    android:layout_height="@dimen/actionBarSize"
+    android:layout_height="?attr/actionBarSize"
     app:navigationContentDescription="@string/abc_action_bar_up_description"
     app:theme="@style/Toolbar.VLC"
     app:popupTheme="?attr/toolbar_popup_style"
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index e95f09f..db4c2b5 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -172,7 +172,6 @@
 
     <style name="ActionBar" parent="Widget.AppCompat.Light.ActionBar">
         <item name="titleTextStyle">@style/ActionBar.Text</item>
-        <item name="android:height">@dimen/actionBarSize</item>
     </style>
 
     <style name="ActionBar.Text" parent="TextAppearance.AppCompat.Widget.ActionBar.Title">



More information about the Android mailing list