[Android] TV: Make toggle Playlist focusable
Geoffrey Métais
git at videolan.org
Thu Jan 14 17:31:35 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 14 15:38:42 2016 +0100| [dc4da886a973cfc509c9bae6954da386ed35446f] | committer: Geoffrey Métais
TV: Make toggle Playlist focusable
> https://code.videolan.org/videolan/vlc-android/commit/dc4da886a973cfc509c9bae6954da386ed35446f
---
vlc-android/res/layout-v16/player_action_bar.xml | 1 +
vlc-android/res/layout/player_action_bar.xml | 1 +
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 1 +
3 files changed, 3 insertions(+)
diff --git a/vlc-android/res/layout-v16/player_action_bar.xml b/vlc-android/res/layout-v16/player_action_bar.xml
index fc5ff9e..df53986 100644
--- a/vlc-android/res/layout-v16/player_action_bar.xml
+++ b/vlc-android/res/layout-v16/player_action_bar.xml
@@ -28,5 +28,6 @@
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:src="@drawable/ic_playlist"
+ android:focusable="true"
android:visibility="gone"/>
</RelativeLayout>
diff --git a/vlc-android/res/layout/player_action_bar.xml b/vlc-android/res/layout/player_action_bar.xml
index d600763..cb4326f 100644
--- a/vlc-android/res/layout/player_action_bar.xml
+++ b/vlc-android/res/layout/player_action_bar.xml
@@ -39,5 +39,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_playlist"
+ android:focusable="true"
android:visibility="gone"/>
</LinearLayout>
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 5f17697..08ed300 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -3235,6 +3235,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mPlaylist.setLayoutManager(layoutManager);
mPlaylistToggle.setVisibility(View.VISIBLE);
mPlaylistToggle.setOnClickListener(VideoPlayerActivity.this);
+ mSeekbar.setNextFocusUpId(mPlaylistToggle.getId());
ItemTouchHelper.Callback callback = new SwipeDragItemTouchHelperCallback(mPlaylistAdapter);
ItemTouchHelper touchHelper = new ItemTouchHelper(callback);
More information about the Android
mailing list