aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-10-14 11:46:28 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-10-14 11:46:28 +0000
commitc8c3c23093bad7302acdfd587a1be2cd0290f851 (patch)
tree99a7c848e96036ce109244b3e5a07a1916df2780 /app/src/main/res
parentbc9cfc8183886398f2baa1745311a5ae4970b4e5 (diff)
downloadinfinity-for-reddit-c8c3c23093bad7302acdfd587a1be2cd0290f851.tar
infinity-for-reddit-c8c3c23093bad7302acdfd587a1be2cd0290f851.tar.gz
infinity-for-reddit-c8c3c23093bad7302acdfd587a1be2cd0290f851.tar.bz2
infinity-for-reddit-c8c3c23093bad7302acdfd587a1be2cd0290f851.tar.lz
infinity-for-reddit-c8c3c23093bad7302acdfd587a1be2cd0290f851.tar.xz
infinity-for-reddit-c8c3c23093bad7302acdfd587a1be2cd0290f851.tar.zst
infinity-for-reddit-c8c3c23093bad7302acdfd587a1be2cd0290f851.zip
Zoomable ViewVideoActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_view_video.xml16
1 files changed, 13 insertions, 3 deletions
diff --git a/app/src/main/res/layout/activity_view_video.xml b/app/src/main/res/layout/activity_view_video.xml
index 85117f3f..bc828a7c 100644
--- a/app/src/main/res/layout/activity_view_video.xml
+++ b/app/src/main/res/layout/activity_view_video.xml
@@ -20,11 +20,21 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
- <com.google.android.exoplayer2.ui.PlayerView
- android:id="@+id/player_view_view_video_activity"
+ <com.otaliastudios.zoom.ZoomSurfaceView
+ android:id="@+id/zoom_surface_view_view_video_activity"
android:layout_width="match_parent"
android:layout_height="match_parent"
- app:controller_layout_id="@layout/exo_playback_control_view"/>
+ app:horizontalPanEnabled="true"
+ app:verticalPanEnabled="true"
+ app:zoomEnabled="true" />
+
+ <com.google.android.exoplayer2.ui.PlayerControlView
+ android:id="@+id/player_control_view_view_video_activity"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom"
+ app:controller_layout_id="@layout/exo_playback_control_view"
+ app:show_timeout="1500" />
<ProgressBar
android:id="@+id/progress_bar_view_video_activity"