diff options
Diffstat (limited to 'app/src/main/res/layout')
3 files changed, 141 insertions, 1 deletions
diff --git a/app/src/main/res/layout/exo_rpan_broadcast_playback_control_view.xml b/app/src/main/res/layout/exo_rpan_broadcast_playback_control_view.xml new file mode 100644 index 00000000..da7faea2 --- /dev/null +++ b/app/src/main/res/layout/exo_rpan_broadcast_playback_control_view.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="utf-8"?> +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="#44000000" + android:id="@+id/constraint_layout_exo_rpan_broadcast_playback_control_view" + xmlns:app="http://schemas.android.com/apk/res-auto"> + + <LinearLayout + android:id="@+id/control_linear_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:paddingTop="4dp" + android:orientation="horizontal" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent"> + + <ImageButton + android:id="@+id/hd_exo_rpan_broadcast_playback_control_view" + android:src="@drawable/ic_video_quality_24dp" + style="@style/ExoMediaButton" + android:visibility="gone" /> + + <ImageButton android:id="@id/exo_rew" + style="@style/ExoMediaButton.Rewind" /> + + <ImageButton android:id="@id/exo_play" + style="@style/ExoMediaButton.Play"/> + + <ImageButton android:id="@id/exo_pause" + style="@style/ExoMediaButton.Pause" /> + + <ImageButton android:id="@id/exo_ffwd" + style="@style/ExoMediaButton.FastForward" /> + + <ImageButton + android:id="@+id/mute_exo_rpan_broadcast_playback_control_view" + style="@style/ExoMediaButton" + android:visibility="gone" /> + + </LinearLayout> + + <androidx.recyclerview.widget.RecyclerView + android:id="@+id/recycler_view_exo_rpan_broadcast_playback_control_view" + android:layout_width="match_parent" + android:layout_height="0dp" + android:paddingTop="16dp" + android:paddingStart="16dp" + android:paddingEnd="16dp" + app:layout_constraintTop_toBottomOf="@id/control_linear_layout" + app:layout_constraintBottom_toTopOf="@id/time_bar_linear_layout" + app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" /> + + <LinearLayout + android:id="@+id/time_bar_linear_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="4dp" + android:padding="16dp" + android:gravity="center_vertical" + android:orientation="horizontal" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent"> + + <TextView android:id="@id/exo_position" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="14sp" + android:textStyle="bold" + android:paddingStart="0dp" + android:paddingEnd="4dp" + android:includeFontPadding="false" + android:textColor="#FFFFFF" + android:fontFamily="?attr/font_family" /> + + <com.google.android.exoplayer2.ui.DefaultTimeBar + android:id="@id/exo_progress" + android:layout_width="0dp" + android:layout_weight="1" + android:layout_height="26dp" + app:bar_height="2dp" + app:scrubber_color="@color/colorAccent" + app:played_color="@color/colorAccent" /> + + <TextView android:id="@id/exo_duration" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="14sp" + android:textStyle="bold" + android:paddingStart="4dp" + android:paddingEnd="0dp" + android:includeFontPadding="false" + android:textColor="#FFFFFF" + android:fontFamily="?attr/font_family" /> + + </LinearLayout> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_view_rpan_broadcast.xml b/app/src/main/res/layout/fragment_view_rpan_broadcast.xml index bab40403..abab4f52 100644 --- a/app/src/main/res/layout/fragment_view_rpan_broadcast.xml +++ b/app/src/main/res/layout/fragment_view_rpan_broadcast.xml @@ -10,6 +10,6 @@ android:id="@+id/player_view_view_rpan_broadcast_fragment" android:layout_width="match_parent" android:layout_height="match_parent" - app:controller_layout_id="@layout/exo_playback_control_view" /> + app:controller_layout_id="@layout/exo_rpan_broadcast_playback_control_view" /> </FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/item_rpan_comment.xml b/app/src/main/res/layout/item_rpan_comment.xml new file mode 100644 index 00000000..74766a90 --- /dev/null +++ b/app/src/main/res/layout/item_rpan_comment.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dp" + android:paddingBottom="8dp"> + + <ImageView + android:id="@+id/icon_image_view_item_rpan_comment" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_gravity="center_vertical" /> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_gravity="center_vertical" + android:layout_marginStart="16dp" + android:layout_marginEnd="0dp" + android:orientation="vertical"> + + <TextView + android:id="@+id/author_text_view_item_rpan_comment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textColor="@color/colorPrimary" /> + + <TextView + android:id="@+id/content_text_view_item_rpan_comment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="4dp" + android:textColor="#FFFFFF" /> + + </LinearLayout> + +</LinearLayout>
\ No newline at end of file |