[Android] XML: Add maxLines attribute alongside singleline
Geoffrey Métais
git at videolan.org
Tue Oct 3 15:47:50 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Oct 3 15:46:37 2017 +0200| [463a6850bf1404f78149fa94783f234a699addbe] | committer: Geoffrey Métais
XML: Add maxLines attribute alongside singleline
> https://code.videolan.org/videolan/vlc-android/commit/463a6850bf1404f78149fa94783f234a699addbe
---
vlc-android/res/layout/audio_browser_item.xml | 2 ++
vlc-android/res/layout/audio_media_switcher_item.xml | 2 ++
2 files changed, 4 insertions(+)
diff --git a/vlc-android/res/layout/audio_browser_item.xml b/vlc-android/res/layout/audio_browser_item.xml
index ed06fb1d6..e694bd4e8 100644
--- a/vlc-android/res/layout/audio_browser_item.xml
+++ b/vlc-android/res/layout/audio_browser_item.xml
@@ -62,6 +62,7 @@
android:layout_marginLeft="@dimen/half_default_margin"
vlc:layout_constraintBottom_toTopOf="@+id/subtitle"
android:singleLine="true"
+ android:maxLines="1"
android:gravity="center_vertical"
android:ellipsize="end"
vlc:alignMode="@{alignMode}"
@@ -79,6 +80,7 @@
vlc:layout_constraintEnd_toEndOf="@+id/title"
vlc:layout_constraintBottom_toBottomOf="parent"
android:singleLine="true"
+ android:maxLines="1"
android:ellipsize="middle"
android:text="@{item.description}"
android:fontFamily="sans-serif-light"
diff --git a/vlc-android/res/layout/audio_media_switcher_item.xml b/vlc-android/res/layout/audio_media_switcher_item.xml
index f88bc871b..583c9b57c 100644
--- a/vlc-android/res/layout/audio_media_switcher_item.xml
+++ b/vlc-android/res/layout/audio_media_switcher_item.xml
@@ -25,6 +25,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:singleLine="true"
+ android:maxLines="1"
android:ellipsize="marquee"
android:scrollHorizontally="true"
android:text="@string/title"
@@ -42,6 +43,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:singleLine="true"
+ android:maxLines="1"
android:ellipsize="marquee"
android:scrollHorizontally="true"
android:textColor="?attr/font_light"
More information about the Android
mailing list