wrap directory thumbnails in FrameLayout only on Android 4

This commit is contained in:
tibbi 2016-07-20 21:00:02 +02:00
parent 32aa2fbc39
commit b0d9c7e8ee
3 changed files with 26 additions and 10 deletions

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<com.simplemobiletools.gallery.MyImageView
android:id="@+id/dir_thumbnail"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foreground="@drawable/selector"/>

View file

@ -1,21 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id="@+id/dir_holder"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foreground="@drawable/selector">
<com.simplemobiletools.gallery.MyImageView
android:id="@+id/dir_thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
<include layout="@layout/directory_tmb"/>
<RelativeLayout
android:id="@+id/dir_shadow_holder"
android:layout_width="match_parent"
android:layout_height="@dimen/tmb_shadow_height"
android:layout_alignParentBottom="true"

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<merge>
<FrameLayout
android:id="@+id/dir_frame"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:foreground="@drawable/selector">
<com.simplemobiletools.gallery.MyImageView
android:id="@+id/dir_thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
</merge>