make sure the folder or image name doesnt stretch beyond the image

This commit is contained in:
tibbi 2017-06-19 22:19:35 +02:00
parent 2e54fc02f3
commit 39196be6d5
2 changed files with 20 additions and 2 deletions

View File

@ -6,7 +6,14 @@
android:layout_height="wrap_content"
android:padding="1px">
<include layout="@layout/directory_tmb"/>
<FrameLayout
android:id="@+id/tmb_wrapper"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/directory_tmb"/>
</FrameLayout>
<ImageView
android:id="@+id/dir_pin"
@ -29,7 +36,9 @@
android:id="@+id/dir_bottom_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/tmb_wrapper"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/tmb_wrapper"
android:gravity="bottom"
android:orientation="vertical"
android:paddingBottom="@dimen/small_margin"

View File

@ -6,7 +6,14 @@
android:layout_height="wrap_content"
android:padding="1px">
<include layout="@layout/photo_video_tmb"/>
<FrameLayout
android:id="@+id/tmb_wrapper"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/photo_video_tmb"/>
</FrameLayout>
<ImageView
android:id="@+id/play_outline"
@ -23,7 +30,9 @@
android:id="@+id/photo_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/tmb_wrapper"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/tmb_wrapper"
android:background="@drawable/gradient_background"
android:gravity="bottom"
android:maxLines="3"