properly highlight the items that are going to be deleted
This commit is contained in:
parent
7b47da40c3
commit
7427f266a7
|
@ -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 {
|
||||||
|
|
|
@ -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"/>
|
|
@ -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"
|
|
@ -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>
|
Loading…
Reference in New Issue