Refine ExoPlayer's DefaultTimeBar style.

This commit is contained in:
Alex Ning 2021-06-23 09:24:10 +08:00
parent a151d98411
commit 9437217bbb
4 changed files with 10 additions and 8 deletions

View File

@ -22,9 +22,7 @@
android:id="@+id/post_detail_recycler_view_view_post_detail_fragment" android:id="@+id/post_detail_recycler_view_view_post_detail_fragment"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1" />
android:paddingBottom="144dp"
android:clipToPadding="false" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/comments_recycler_view_view_post_detail_fragment" android:id="@+id/comments_recycler_view_view_post_detail_fragment"

View File

@ -22,9 +22,7 @@
android:id="@+id/post_detail_recycler_view_view_post_detail_fragment" android:id="@+id/post_detail_recycler_view_view_post_detail_fragment"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_weight="1" android:layout_weight="1" />
android:paddingBottom="144dp"
android:clipToPadding="false" />
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/comments_recycler_view_view_post_detail_fragment" android:id="@+id/comments_recycler_view_view_post_detail_fragment"

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/linear_layout_exo_playback_control_view" android:id="@+id/linear_layout_exo_playback_control_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -85,6 +86,7 @@
<com.google.android.exoplayer2.ui.DefaultTimeBar <com.google.android.exoplayer2.ui.DefaultTimeBar
android:id="@id/exo_progress" android:id="@id/exo_progress"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="26dp"/> android:layout_height="26dp"
app:bar_height="2dp" />
</LinearLayout> </LinearLayout>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/linear_layout_exo_playback_control_view" android:id="@+id/linear_layout_exo_playback_control_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -64,7 +65,10 @@
android:id="@id/exo_progress" android:id="@id/exo_progress"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_weight="1" android:layout_weight="1"
android:layout_height="26dp"/> android:layout_height="26dp"
app:bar_height="2dp"
app:scrubber_color="@color/colorAccent"
app:played_color="@color/colorAccent" />
<TextView android:id="@id/exo_duration" <TextView android:id="@id/exo_duration"
android:layout_width="wrap_content" android:layout_width="wrap_content"