[Android] TV: Set all titles on 2 lines

Geoffrey Métais git at videolan.org
Thu Nov 24 18:20:12 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Nov 24 18:19:44 2016 +0100| [2e96eaefb909bd286ebcfb9546ab083ba0374674] | committer: Geoffrey Métais

TV: Set all titles on 2 lines

> https://code.videolan.org/videolan/vlc-android/commit/2e96eaefb909bd286ebcfb9546ab083ba0374674
---

 vlc-android/res/values/styles.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/values/styles.xml b/vlc-android/res/values/styles.xml
index 686c8a1..36fda1b 100644
--- a/vlc-android/res/values/styles.xml
+++ b/vlc-android/res/values/styles.xml
@@ -182,8 +182,8 @@
 
    </style>
     <style name="VLCardViewTitleStyle" parent="Widget.Leanback.ImageCardView.TitleStyle">
-        <item name="android:maxLines">2</item>
-        <item name="android:ellipsize">middle</item>
+        <item name="android:lines">2</item>
+        <item name="android:gravity">center_vertical</item>
    </style>
     <style name="VLCardViewInfoStyle" parent="Widget.Leanback.ImageCardView.InfoAreaStyle">
         <item name="android:background">@color/tv_card_content</item>



More information about the Android mailing list