[Android] Remove fixed size of browsers items
Geoffrey Métais
git at videolan.org
Thu Mar 10 12:34:50 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar 10 12:29:09 2016 +0100| [eb9c3ae48d3b65bf17f4c24a5949cb877e394875] | committer: Geoffrey Métais
Remove fixed size of browsers items
> https://code.videolan.org/videolan/vlc-android/commit/eb9c3ae48d3b65bf17f4c24a5949cb877e394875
---
vlc-android/res/layout/directory_view_item.xml | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/vlc-android/res/layout/directory_view_item.xml b/vlc-android/res/layout/directory_view_item.xml
index 45b0b34..f07341f 100644
--- a/vlc-android/res/layout/directory_view_item.xml
+++ b/vlc-android/res/layout/directory_view_item.xml
@@ -32,8 +32,8 @@
</data>
<LinearLayout
android:id="@+id/layout_item"
- android:layout_width="fill_parent"
- android:layout_height="@dimen/audio_browser_item_size"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:orientation="horizontal"
android:focusable="true"
android:clickable="@{holder != null}"
@@ -66,9 +66,9 @@
android:textColor="@color/whitetransparent"
android:background="@{image}"/>
- <RelativeLayout
+ <LinearLayout
android:layout_width="0dp"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:layout_weight="1"
@@ -79,9 +79,8 @@
<TextView
android:id="@+id/title"
android:layout_width="wrap_content"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
- android:layout_above="@+id/text"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:singleLine="true"
@@ -95,14 +94,13 @@
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
android:ellipsize="marquee"
android:maxLines="1"
android:text="@{media.description}"
android:fontFamily="sans-serif-light"
android:visibility="@{media.description != null ? View.VISIBLE : View.GONE}"
android:textColor="?attr/list_subtitle"/>
- </RelativeLayout>
+ </LinearLayout>
<ImageView
android:id="@+id/item_more"
More information about the Android
mailing list