[Android] items: new triangle icon

Sébastien Toque git at videolan.org
Sat Dec 28 16:32:47 CET 2013


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Sat Dec 28 16:32:19 2013 +0100| [a96f23c08c4fe0b957945583ee3d3fa5cf9d23c7] | committer: Sébastien Toque

items: new triangle icon

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a96f23c08c4fe0b957945583ee3d3fa5cf9d23c7
---

 vlc-android/res/drawable-hdpi/dropdown_ic_arrow.xml          |    7 -------
 vlc-android/res/drawable-hdpi/dropdown_ic_arrow_glow.png     |  Bin 378 -> 0 bytes
 vlc-android/res/drawable-hdpi/dropdown_ic_arrow_normal.png   |  Bin 405 -> 0 bytes
 vlc-android/res/drawable-hdpi/item_more_normal.png           |  Bin 0 -> 154 bytes
 vlc-android/res/drawable-hdpi/item_more_pressed.png          |  Bin 0 -> 176 bytes
 vlc-android/res/drawable-ldpi/item_more_normal.png           |  Bin 0 -> 118 bytes
 vlc-android/res/drawable-ldpi/item_more_pressed.png          |  Bin 0 -> 16846 bytes
 vlc-android/res/drawable-mdpi/item_more_normal.png           |  Bin 0 -> 129 bytes
 vlc-android/res/drawable-mdpi/item_more_pressed.png          |  Bin 0 -> 16848 bytes
 vlc-android/res/drawable-xhdpi/item_more_normal.png          |  Bin 0 -> 181 bytes
 vlc-android/res/drawable-xhdpi/item_more_pressed.png         |  Bin 0 -> 16919 bytes
 vlc-android/res/drawable/item_more.xml                       |    7 +++++++
 vlc-android/res/drawable/item_more_triangle.png              |  Bin 176 -> 0 bytes
 vlc-android/res/layout/audio_browser_item_simple.xml         |   10 +++++-----
 vlc-android/res/layout/video_grid_item.xml                   |    4 ++--
 vlc-android/res/layout/video_list_item.xml                   |    4 ++--
 .../src/org/videolan/vlc/gui/video/VideoListAdapter.java     |    2 +-
 17 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/vlc-android/res/drawable-hdpi/dropdown_ic_arrow.xml b/vlc-android/res/drawable-hdpi/dropdown_ic_arrow.xml
deleted file mode 100644
index f539bb9..0000000
--- a/vlc-android/res/drawable-hdpi/dropdown_ic_arrow.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
-    <item android:drawable="@drawable/dropdown_ic_arrow_normal" android:state_focused="true" android:state_pressed="false"/>
-    <item android:drawable="@drawable/dropdown_ic_arrow_glow" android:state_focused="true" android:state_pressed="true"/>
-    <item android:drawable="@drawable/dropdown_ic_arrow_glow" android:state_focused="false" android:state_pressed="true"/>
-    <item android:drawable="@drawable/dropdown_ic_arrow_normal"/>
-</selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable-hdpi/dropdown_ic_arrow_glow.png b/vlc-android/res/drawable-hdpi/dropdown_ic_arrow_glow.png
deleted file mode 100644
index a7476e8..0000000
Binary files a/vlc-android/res/drawable-hdpi/dropdown_ic_arrow_glow.png and /dev/null differ
diff --git a/vlc-android/res/drawable-hdpi/dropdown_ic_arrow_normal.png b/vlc-android/res/drawable-hdpi/dropdown_ic_arrow_normal.png
deleted file mode 100644
index b659926..0000000
Binary files a/vlc-android/res/drawable-hdpi/dropdown_ic_arrow_normal.png and /dev/null differ
diff --git a/vlc-android/res/drawable-hdpi/item_more_normal.png b/vlc-android/res/drawable-hdpi/item_more_normal.png
new file mode 100644
index 0000000..60fbc15
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/item_more_normal.png differ
diff --git a/vlc-android/res/drawable-hdpi/item_more_pressed.png b/vlc-android/res/drawable-hdpi/item_more_pressed.png
new file mode 100644
index 0000000..ced28c2
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/item_more_pressed.png differ
diff --git a/vlc-android/res/drawable-ldpi/item_more_normal.png b/vlc-android/res/drawable-ldpi/item_more_normal.png
new file mode 100644
index 0000000..3692150
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/item_more_normal.png differ
diff --git a/vlc-android/res/drawable-ldpi/item_more_pressed.png b/vlc-android/res/drawable-ldpi/item_more_pressed.png
new file mode 100644
index 0000000..993e847
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/item_more_pressed.png differ
diff --git a/vlc-android/res/drawable-mdpi/item_more_normal.png b/vlc-android/res/drawable-mdpi/item_more_normal.png
new file mode 100644
index 0000000..ab20ca6
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/item_more_normal.png differ
diff --git a/vlc-android/res/drawable-mdpi/item_more_pressed.png b/vlc-android/res/drawable-mdpi/item_more_pressed.png
new file mode 100644
index 0000000..40d7c4a
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/item_more_pressed.png differ
diff --git a/vlc-android/res/drawable-xhdpi/item_more_normal.png b/vlc-android/res/drawable-xhdpi/item_more_normal.png
new file mode 100644
index 0000000..af76f10
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/item_more_normal.png differ
diff --git a/vlc-android/res/drawable-xhdpi/item_more_pressed.png b/vlc-android/res/drawable-xhdpi/item_more_pressed.png
new file mode 100644
index 0000000..f6b0b36
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/item_more_pressed.png differ
diff --git a/vlc-android/res/drawable/item_more.xml b/vlc-android/res/drawable/item_more.xml
new file mode 100644
index 0000000..1669b9f
--- /dev/null
+++ b/vlc-android/res/drawable/item_more.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+    <item android:drawable="@drawable/item_more_normal" android:state_focused="true" android:state_pressed="false"/>
+    <item android:drawable="@drawable/item_more_pressed" android:state_focused="true" android:state_pressed="true"/>
+    <item android:drawable="@drawable/item_more_pressed" android:state_focused="false" android:state_pressed="true"/>
+    <item android:drawable="@drawable/item_more_normal"/>
+</selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable/item_more_triangle.png b/vlc-android/res/drawable/item_more_triangle.png
deleted file mode 100644
index 5a5be62..0000000
Binary files a/vlc-android/res/drawable/item_more_triangle.png and /dev/null differ
diff --git a/vlc-android/res/layout/audio_browser_item_simple.xml b/vlc-android/res/layout/audio_browser_item_simple.xml
index 0e87ac4..5fb337b 100644
--- a/vlc-android/res/layout/audio_browser_item_simple.xml
+++ b/vlc-android/res/layout/audio_browser_item_simple.xml
@@ -16,7 +16,6 @@
             android:layout_gravity="center" />
 
         <LinearLayout
-            xmlns:android="http://schemas.android.com/apk/res/android"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:layout_toRightOf="@+id/cover"
@@ -46,12 +45,13 @@
                 android:textSize="14sp" />
         </LinearLayout>
 
-        <View
-            android:layout_width="8dp"
-            android:layout_height="8dp"
+        <ImageView
+            android:id="@+id/item_more"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
             android:layout_alignParentBottom="true"
             android:layout_alignParentRight="true"
-            android:background="@drawable/item_more_triangle" />
+            android:background="@drawable/item_more" />
     </RelativeLayout>
 
     <View
diff --git a/vlc-android/res/layout/video_grid_item.xml b/vlc-android/res/layout/video_grid_item.xml
index dded697..06ed522 100644
--- a/vlc-android/res/layout/video_grid_item.xml
+++ b/vlc-android/res/layout/video_grid_item.xml
@@ -51,10 +51,10 @@
             android:textColor="@color/list_subtitle" />
     </LinearLayout>
     <ImageView
-        android:id="@+id/ml_item_more"
+        android:id="@+id/item_more"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:src="@drawable/dropdown_ic_arrow"
+        android:src="@drawable/item_more"
         android:layout_alignParentBottom="true"
         android:layout_alignParentRight="true"
         android:clickable="true" />
diff --git a/vlc-android/res/layout/video_list_item.xml b/vlc-android/res/layout/video_list_item.xml
index d2b8824..00037d5 100644
--- a/vlc-android/res/layout/video_list_item.xml
+++ b/vlc-android/res/layout/video_list_item.xml
@@ -52,10 +52,10 @@
             android:paddingLeft="12dip" />
     </LinearLayout>
     <ImageView
-        android:id="@+id/ml_item_more"
+        android:id="@+id/item_more"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:src="@drawable/dropdown_ic_arrow"
+        android:src="@drawable/item_more"
         android:layout_alignParentBottom="true"
         android:layout_alignParentRight="true"
         android:clickable="true" />
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 845f04f..0e6bd71 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java
@@ -145,7 +145,7 @@ public class VideoListAdapter extends ArrayAdapter<Media>
             holder.title = (TextView) v.findViewById(R.id.ml_item_title);
             holder.subtitle = (TextView) v.findViewById(R.id.ml_item_subtitle);
             holder.progress = (ProgressBar) v.findViewById(R.id.ml_item_progress);
-            holder.more = (ImageView) v.findViewById(R.id.ml_item_more);
+            holder.more = (ImageView) v.findViewById(R.id.item_more);
             holder.listmode = mListMode;
             v.setTag(holder);
 



More information about the Android mailing list