properly highlight the items that are going to be deleted
This commit is contained in:
parent
7b47da40c3
commit
7427f266a7
4 changed files with 27 additions and 7 deletions
|
@ -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 {
|
||||||
|
|
7
app/src/main/res/layout-v21/photo_video_tmb.xml
Normal file
7
app/src/main/res/layout-v21/photo_video_tmb.xml
Normal 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"/>
|
|
@ -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"
|
17
app/src/main/res/layout/photo_video_tmb.xml
Normal file
17
app/src/main/res/layout/photo_video_tmb.xml
Normal 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>
|
Loading…
Reference in a new issue