[Android] Styles: introduce a new attribute to set the margin top size
Adrien Maglo
git at videolan.org
Mon Mar 31 22:08:28 CEST 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Mar 31 22:01:44 2014 +0200| [f89a46e9aadd6043dc17f3099108cd9f3dd2375d] | committer: Adrien Maglo
Styles: introduce a new attribute to set the margin top size
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=f89a46e9aadd6043dc17f3099108cd9f3dd2375d
---
vlc-android/res/layout/main.xml | 2 +-
vlc-android/res/layout/sidebar.xml | 2 +-
vlc-android/res/values/attrs.xml | 2 ++
vlc-android/res/values/styles.xml | 2 ++
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/vlc-android/res/layout/main.xml b/vlc-android/res/layout/main.xml
index 04ce3d6..730ac2c 100644
--- a/vlc-android/res/layout/main.xml
+++ b/vlc-android/res/layout/main.xml
@@ -13,7 +13,7 @@
<View
android:layout_width="fill_parent"
- android:layout_height="?attr/actionBarSize"
+ android:layout_height="?attr/marginTopContent"
android:background="@drawable/actionbar_background" />
<FrameLayout
diff --git a/vlc-android/res/layout/sidebar.xml b/vlc-android/res/layout/sidebar.xml
index 1173017..a2f2bd8 100644
--- a/vlc-android/res/layout/sidebar.xml
+++ b/vlc-android/res/layout/sidebar.xml
@@ -5,7 +5,7 @@
android:divider="?attr/background_menu_divider"
android:dividerHeight="0.2dp"
android:layout_width="208dp"
- android:paddingTop="?attr/actionBarSize"
+ android:paddingTop="?attr/marginTopContent"
android:cacheColorHint="#0000"
android:fastScrollEnabled="true"
android:background="?attr/background_menu">
diff --git a/vlc-android/res/values/attrs.xml b/vlc-android/res/values/attrs.xml
index fd061e8..b95b38c 100644
--- a/vlc-android/res/values/attrs.xml
+++ b/vlc-android/res/values/attrs.xml
@@ -56,4 +56,6 @@
<attr name="overhangSize" format="dimension" />
</declare-styleable>
+ <attr name="marginTopContent" format="dimension" />
+
</resources>
\ No newline at end of file
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index 8331624..fbe537e 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -17,6 +17,7 @@
<item name="windowActionBarOverlay">true</item>
<item name="android:actionOverflowButtonStyle">@style/ActionBar.OverflowButton</item>
<item name="actionOverflowButtonStyle">@style/ActionBar.OverflowButton</item>
+ <item name="marginTopContent">50dp</item>
<item name="android:listViewStyle">@style/Theme.VLC.List</item>
<item name="android:gridViewStyle">@style/Theme.VLC.List</item>
<item name="android:expandableListViewStyle">@style/Theme.VLC.List</item>
@@ -76,6 +77,7 @@
<item name="windowActionBarOverlay">true</item>
<item name="android:actionOverflowButtonStyle">@style/ActionBar.OverflowButton</item>
<item name="actionOverflowButtonStyle">@style/ActionBar.OverflowButton</item>
+ <item name="marginTopContent">50dp</item>
<item name="android:listViewStyle">@style/Theme.VLC.List</item>
<item name="android:gridViewStyle">@style/Theme.VLC.List</item>
<item name="android:expandableListViewStyle">@style/Theme.VLC.List</item>
More information about the Android
mailing list