[Android] Remove the button to access the video informations
Ludovic Fauvet
git at videolan.org
Fri Aug 17 18:53:02 CEST 2012
vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Fri Aug 17 17:26:36 2012 +0200| [06cf378447afc4a98a7061370667bc1d401ceef5] | committer: Ludovic Fauvet
Remove the button to access the video informations
The contextual menu is more suitable for this task.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=06cf378447afc4a98a7061370667bc1d401ceef5
---
vlc-android/res/layout/video_list_item.xml | 7 -------
.../src/org/videolan/vlc/gui/video/VideoListAdapter.java | 14 --------------
2 files changed, 21 deletions(-)
diff --git a/vlc-android/res/layout/video_list_item.xml b/vlc-android/res/layout/video_list_item.xml
index b81cc6d..4bfc243 100644
--- a/vlc-android/res/layout/video_list_item.xml
+++ b/vlc-android/res/layout/video_list_item.xml
@@ -33,11 +33,4 @@
android:textColor="#888888"
android:paddingLeft="12dip" />
</LinearLayout>
- <ImageView
- android:id="@+id/ml_item_more"
- android:layout_width="wrap_content"
- android:layout_height="fill_parent"
- android:src="@drawable/ic_next"
- android:paddingRight="12dip"
- android:paddingLeft="5dip" />
</LinearLayout>
\ No newline at end of file
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
index 57f233f..2defdd1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
@@ -135,7 +135,6 @@ public class VideoListAdapter extends ArrayAdapter<Media>
holder.thumbnail = (ImageView) v.findViewById(R.id.ml_item_thumbnail);
holder.title = (TextView) v.findViewById(R.id.ml_item_title);
holder.subtitle = (TextView) v.findViewById(R.id.ml_item_subtitle);
- holder.more = (ImageView) v.findViewById(R.id.ml_item_more);
v.setTag(holder);
} else
holder = (ViewHolder) v.getTag();
@@ -167,23 +166,10 @@ public class VideoListAdapter extends ArrayAdapter<Media>
Util.millisToString(media.getLength()),
media.getWidth(), media.getHeight()));
}
- holder.more.setTag(media);
- holder.more.setOnClickListener(moreClickListener);
return v;
}
- private final OnClickListener moreClickListener = new OnClickListener() {
-
- @Override
- public void onClick(View v) {
- Media item = (Media) v.getTag();
- Intent intent = new Intent(getContext(), MediaInfoActivity.class);
- intent.putExtra("itemLocation", item.getLocation());
- getContext().startActivity(intent);
- }
- };
-
static class ViewHolder {
View layout;
ImageView thumbnail;
More information about the Android
mailing list