[Android] Ellipsize browser items title on start
Geoffrey Métais
git at videolan.org
Tue Oct 3 15:47:51 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Oct 3 15:47:15 2017 +0200| [41139c2173a3e647c7c9f6f88d489730aee9ba2b] | committer: Geoffrey Métais
Ellipsize browser items title on start
> https://code.videolan.org/videolan/vlc-android/commit/41139c2173a3e647c7c9f6f88d489730aee9ba2b
---
vlc-android/res/layout/browser_item.xml | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/vlc-android/res/layout/browser_item.xml b/vlc-android/res/layout/browser_item.xml
index 5bf3daf05..7e352c54e 100644
--- a/vlc-android/res/layout/browser_item.xml
+++ b/vlc-android/res/layout/browser_item.xml
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
- xmlns:app="http://schemas.android.com/apk/res-auto">
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ tools:targetApi="jelly_bean" >
<data>
<import type="android.view.View"/>
<import type="android.text.TextUtils"/>
@@ -80,8 +81,7 @@
app:layout_constraintVertical_chainStyle="packed"
app:layout_constraintEnd_toStartOf="@+id/item_more"
app:layout_constraintBottom_toTopOf="@+id/text"
- android:ellipsize="marquee"
- android:marqueeRepeatLimit="marquee_forever"
+ android:ellipsize="start"
android:maxLines="1"
android:text="@{item.title}"
android:fontFamily="sans-serif-light"
@@ -92,7 +92,6 @@
android:id="@+id/text"
android:layout_width="0dp"
android:layout_height="wrap_content"
- android:ellipsize="marquee"
android:fontFamily="sans-serif-light"
android:maxLines="1"
android:text="@{item.description}"
@@ -101,7 +100,7 @@
app:layout_constraintEnd_toStartOf="@+id/item_more"
app:layout_constraintStart_toStartOf="@+id/title"
app:layout_constraintTop_toBottomOf="@+id/title"
- android:visibility="@{TextUtils.isEmpty(item.description) ? View.GONE : View.VISIBLE, default=gone}" />
+ android:visibility="@{TextUtils.isEmpty(item.description) ? View.GONE : View.VISIBLE, default=gone}" />
<ImageView
android:id="@+id/item_more"
More information about the Android
mailing list