Move onClickListeners to ViewHolders in PostRecyclerViewAdapter. Pause video after fragment pause.

This commit is contained in:
Alex Ning
2020-04-30 11:24:34 +08:00
parent 033c8bd241
commit 5c05350119
7 changed files with 386 additions and 391 deletions

View File

@@ -5,7 +5,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/parent_relative_layout_view_gif_activity"
android:background="@android:color/black"
android:background="#000000"
android:keepScreenOn="true"
tools:application="ml.docilealligator.infinityforreddit.Activity.ViewGIFActivity">
<ProgressBar

View File

@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black"
android:background="#000000"
android:id="@+id/relative_layout_view_video_activity"
android:keepScreenOn="true"
tools:application="ml.docilealligator.infinityforreddit.Activity.ViewVideoActivity">

View File

@@ -16,7 +16,7 @@
android:layout_height="match_parent"
android:clipToPadding="false" />-->
<im.ene.toro.widget.Container
<ml.docilealligator.infinityforreddit.CustomView.CustomToroContainer
android:id="@+id/recycler_view_post_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"

View File

@@ -109,6 +109,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="4dp"
android:text="@string/video"
android:textSize="?attr/font_12"
app:lib_setRadius="3dp"
app:lib_setRoundedView="true"
@@ -189,6 +190,7 @@
android:id="@+id/aspect"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="#000000"
app:resize_mode="fixed_width">
<com.google.android.exoplayer2.ui.PlayerView