[Android] TV cards styling
Geoffrey Métais
git at videolan.org
Wed Nov 23 15:20:42 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Nov 23 10:52:38 2016 +0100| [04fab22399518a7b8d611419217464f1ce23a714] | committer: Geoffrey Métais
TV cards styling
> https://code.videolan.org/videolan/vlc-android/commit/04fab22399518a7b8d611419217464f1ce23a714
---
vlc-android/AndroidManifest.xml | 12 ++++++------
vlc-android/res/values/styles.xml | 7 +++++++
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index 278c8b8..39cb529 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -534,7 +534,7 @@
android:name="org.videolan.vlc.gui.tv.MainTvActivity"
android:label="@string/app_name"
android:launchMode="singleInstance"
- android:theme="@style/Theme.Leanback" />
+ android:theme="@style/Theme.VLC.TV" />
<activity
android:name="org.videolan.vlc.gui.tv.DetailsActivity"
android:exported="true"
@@ -542,23 +542,23 @@
<activity
android:name=".gui.tv.browser.VerticalGridActivity"
android:exported="true"
- android:theme="@style/Theme.Leanback" />
+ android:theme="@style/Theme.VLC.TV" />
<activity
android:name="org.videolan.vlc.gui.tv.SearchActivity"
android:exported="true"
- android:theme="@style/Theme.Leanback" />
+ android:theme="@style/Theme.VLC.TV" />
<activity
android:name="org.videolan.vlc.gui.tv.audioplayer.AudioPlayerActivity"
android:exported="true"
android:launchMode="singleTask"
android:allowTaskReparenting="true"
- android:theme="@style/Theme.Leanback" />
+ android:theme="@style/Theme.VLC.TV" />
<activity android:name=".gui.tv.preferences.PreferencesActivity"
android:theme="@style/Theme.VLC.Leanback.Preferences" />
<activity android:name=".gui.tv.AboutActivity"
- android:theme="@style/Theme.Leanback" />
+ android:theme="@style/Theme.VLC.TV" />
<activity android:name=".gui.tv.LicenceActivity"
- android:theme="@style/Theme.Leanback" />
+ android:theme="@style/Theme.VLC.TV" />
<service
android:name=".RecommendationsService"
diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index 32b7e86..092d5df 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -171,6 +171,13 @@
<item name="ic_audiodelay">@drawable/ic_audiodelay_w</item>
<item name="ic_subtitledelay">@drawable/ic_subtitledelay_w</item>
</style>
+ <style name="Theme.VLC.TV" parent="Theme.Leanback">
+ <item name="imageCardViewStyle">@style/VLCardView</item>
+ </style>
+ <style name="VLCardView" parent="Widget.Leanback.ImageCardViewStyle">
+ <item name="cardType">infoUnderWithExtra</item>
+ <item name="infoVisibility">always</item>
+ </style>
<style name="Theme.VLC.Leanback.Preferences" parent="Theme.Leanback">
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
More information about the Android
mailing list