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"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <RelativeLayout
android:id="@+id/dir_holder"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<FrameLayout <include layout="@layout/directory_tmb"/>
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>
<RelativeLayout <RelativeLayout
android:id="@+id/dir_shadow_holder"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/tmb_shadow_height" android:layout_height="@dimen/tmb_shadow_height"
android:layout_alignParentBottom="true" 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>