[Android] Make Player elements selectable

Geoffrey Métais git at videolan.org
Tue Dec 16 16:23:56 CET 2014


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec  5 17:31:21 2014 +0100| [e9c5d0e708861fdbd28ff63b1897debd3d5f4318] | committer: Geoffrey Métais

Make Player elements selectable

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

 vlc-android/res/layout-v15/player_hud.xml |   18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/vlc-android/res/layout-v15/player_hud.xml b/vlc-android/res/layout-v15/player_hud.xml
index 0417d11..7dcc3d8 100644
--- a/vlc-android/res/layout-v15/player_hud.xml
+++ b/vlc-android/res/layout-v15/player_hud.xml
@@ -20,7 +20,8 @@
         android:minHeight="@dimen/seekbar_height"
         android:layout_alignParentTop="true"
         android:progressDrawable="@drawable/po_seekbar"
-        android:thumb="@drawable/seekbar_thumb" />
+        android:thumb="@drawable/seekbar_thumb"
+        android:focusable="true"/>
 
     <TextView
         android:id="@+id/player_overlay_time"
@@ -55,7 +56,8 @@
         android:layout_alignParentLeft="true"
         android:layout_marginLeft="@dimen/images_margin_sides"
         android:src="@drawable/ic_lock"
-        android:scaleType="center" />
+        android:scaleType="center"
+        android:focusable="true" />
 
     <ImageView
         android:id="@+id/player_overlay_tracks"
@@ -68,7 +70,8 @@
         android:layout_alignTop="@+id/player_overlay_play"
         android:clickable="true"
         android:src="@drawable/ic_subtitle_circle"
-        android:scaleType="center"/>
+        android:scaleType="center"
+        android:focusable="true"/>
 
     <ImageView
         android:id="@+id/player_overlay_play"
@@ -78,7 +81,8 @@
         android:layout_centerHorizontal="true"
         android:clickable="true"
         android:src="@drawable/ic_pause_circle"
-        android:scaleType="center"/>
+        android:scaleType="center"
+        android:focusable="true"/>
 
     <ImageView
         android:id="@+id/player_overlay_adv_function"
@@ -92,7 +96,8 @@
         android:clickable="true"
         android:onClick="showAdvancedOptions"
         android:src="@drawable/ic_more"
-        android:scaleType="center"/>
+        android:scaleType="center"
+        android:focusable="true"/>
 
     <ImageView
         android:id="@+id/player_overlay_size"
@@ -104,5 +109,6 @@
         android:layout_alignParentRight="true"
         android:layout_marginRight="@dimen/images_margin_sides"
         android:src="@drawable/ic_crop_circle"
-        android:scaleType="center" />
+        android:scaleType="center"
+        android:focusable="true" />
 </RelativeLayout>
\ No newline at end of file



More information about the Android mailing list