properly highlight the items that are going to be deleted

This commit is contained in:
tibbi 2016-07-15 23:07:21 +02:00
parent 7b47da40c3
commit 7427f266a7
4 changed files with 27 additions and 7 deletions

View file

@ -33,7 +33,7 @@ public class MediaAdapter extends BaseAdapter {
final Medium medium = mMedia.get(position); final Medium medium = mMedia.get(position);
ViewHolder viewHolder; ViewHolder viewHolder;
if (convertView == null) { if (convertView == null) {
convertView = mInflater.inflate(R.layout.video_item, parent, false); convertView = mInflater.inflate(R.layout.photo_video_item, parent, false);
viewHolder = new ViewHolder(convertView); viewHolder = new ViewHolder(convertView);
convertView.setTag(viewHolder); convertView.setTag(viewHolder);
} else { } else {

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<com.simplemobiletools.gallery.MyImageView
android:id="@+id/medium_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

@ -3,13 +3,9 @@
android:id="@+id/media_item_holder" android:id="@+id/media_item_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">
android:foreground="@drawable/selector">
<com.simplemobiletools.gallery.MyImageView <include layout="@layout/photo_video_tmb"/>
android:id="@+id/medium_thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<ImageView <ImageView
android:id="@+id/play_outline" android:id="@+id/play_outline"

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<merge>
<FrameLayout
android:id="@+id/medium_thumbnail_holder"
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/medium_thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
</merge>