2021-12-12 17:38:23 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-09-20 23:23:34 +05:30
|
|
|
<com.github.libretube.ui.views.SingleViewTouchableMotionLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-12-12 17:38:23 +05:30
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:id="@+id/playerMotionLayout"
|
2021-12-12 17:38:23 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-11-12 23:10:54 +05:30
|
|
|
app:layoutDescription="@xml/player_scene">
|
2021-12-12 17:38:23 +05:30
|
|
|
|
|
|
|
<ScrollView
|
2022-05-08 23:02:13 +05:30
|
|
|
android:id="@+id/player_scrollView"
|
2021-12-12 17:38:23 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
2022-05-21 13:52:00 +05:30
|
|
|
android:background="?android:attr/colorBackground"
|
2021-12-12 17:38:23 +05:30
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-05-07 21:52:45 +05:30
|
|
|
app:layout_constraintTop_toBottomOf="@+id/main_container">
|
2021-12-12 17:38:23 +05:30
|
|
|
|
|
|
|
<LinearLayout
|
2021-12-15 15:54:12 +05:30
|
|
|
android:id="@+id/linLayout"
|
2021-12-12 17:38:23 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-06-28 20:59:31 +05:30
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
android:orientation="vertical">
|
2021-12-14 21:45:53 +05:30
|
|
|
|
2022-11-05 16:58:57 +05:30
|
|
|
<LinearLayout
|
2022-06-13 19:45:02 +05:30
|
|
|
android:id="@+id/player_title_layout"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_height="wrap_content"
|
2023-02-01 22:32:28 +05:30
|
|
|
android:layout_gravity="center_vertical"
|
2023-06-19 16:31:51 +05:30
|
|
|
android:layout_marginHorizontal="4dp"
|
2023-01-09 20:24:52 +05:30
|
|
|
android:orientation="vertical">
|
2022-03-27 11:49:17 +05:30
|
|
|
|
2023-01-09 20:24:52 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2022-03-27 11:49:17 +05:30
|
|
|
android:layout_height="wrap_content"
|
2023-01-09 20:24:52 +05:30
|
|
|
android:layout_marginVertical="8dp"
|
|
|
|
android:orientation="horizontal">
|
2022-05-07 21:52:45 +05:30
|
|
|
|
2023-01-09 20:24:52 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/player_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginEnd="5dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textSize="18sp"
|
|
|
|
tools:text="Video Title" />
|
2022-05-07 21:52:45 +05:30
|
|
|
|
2023-01-09 20:24:52 +05:30
|
|
|
<ImageView
|
|
|
|
android:id="@+id/player_description_arrow"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginHorizontal="10dp"
|
|
|
|
android:src="@drawable/ic_arrow_down" />
|
2022-06-28 20:23:18 +05:30
|
|
|
|
2023-01-09 20:24:52 +05:30
|
|
|
</LinearLayout>
|
2022-06-28 20:23:18 +05:30
|
|
|
|
2022-06-28 01:05:06 +05:30
|
|
|
<LinearLayout
|
2023-01-09 20:24:52 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-06-13 19:45:02 +05:30
|
|
|
android:layout_height="wrap_content"
|
2023-01-09 20:24:52 +05:30
|
|
|
android:layout_marginHorizontal="10dp"
|
|
|
|
android:orientation="horizontal">
|
2022-06-28 01:05:06 +05:30
|
|
|
|
|
|
|
<TextView
|
2023-01-09 20:24:52 +05:30
|
|
|
android:id="@+id/player_views_info"
|
|
|
|
android:layout_width="0dp"
|
2022-06-28 01:05:06 +05:30
|
|
|
android:layout_height="wrap_content"
|
2023-02-01 22:32:28 +05:30
|
|
|
android:layout_marginEnd="5dp"
|
2023-02-18 14:09:04 +05:30
|
|
|
android:layout_weight="1"
|
2023-01-09 20:24:52 +05:30
|
|
|
tools:text="10M views 2 days ago " />
|
2022-06-28 20:23:18 +05:30
|
|
|
|
2023-02-01 22:32:28 +05:30
|
|
|
<com.github.libretube.ui.views.DrawableTextView
|
|
|
|
android:id="@+id/textLike"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginHorizontal="5dp"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
app:drawableStartCompat="@drawable/ic_like"
|
|
|
|
app:drawableStartDimen="12dp"
|
|
|
|
tools:text="4.2K" />
|
|
|
|
|
|
|
|
<com.github.libretube.ui.views.DrawableTextView
|
|
|
|
android:id="@+id/textDislike"
|
2022-06-28 01:05:06 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2023-02-01 22:32:28 +05:30
|
|
|
android:layout_marginHorizontal="5dp"
|
|
|
|
android:drawablePadding="5dp"
|
|
|
|
app:drawableStartCompat="@drawable/ic_dislike"
|
|
|
|
app:drawableStartDimen="12dp"
|
|
|
|
tools:text="1.3K" />
|
2022-06-28 01:05:06 +05:30
|
|
|
|
|
|
|
</LinearLayout>
|
2022-06-13 19:45:02 +05:30
|
|
|
|
2022-06-28 20:23:18 +05:30
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/desc_linLayout"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-06-19 16:31:51 +05:30
|
|
|
android:layout_marginHorizontal="5dp"
|
2023-06-24 23:27:00 +05:30
|
|
|
android:orientation="vertical"
|
2022-06-28 20:23:18 +05:30
|
|
|
android:visibility="gone">
|
|
|
|
|
2023-08-07 21:32:42 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/meta_info"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2022-06-28 20:23:18 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/player_description"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
android:textSize="14sp" />
|
2022-01-28 18:31:41 +05:30
|
|
|
|
2023-02-20 14:54:42 +05:30
|
|
|
<TextView
|
2023-07-29 20:12:03 +05:30
|
|
|
android:id="@+id/additional_video_info"
|
2023-02-20 14:54:42 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
2023-07-29 20:29:56 +05:30
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/tags_recycler"
|
|
|
|
android:layout_width="wrap_content"
|
2023-08-07 21:32:42 +05:30
|
|
|
android:layout_height="wrap_content" />
|
2023-07-29 20:29:56 +05:30
|
|
|
|
2022-06-28 20:23:18 +05:30
|
|
|
</LinearLayout>
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
style="@style/Widget.Material3.CardView.Elevated"
|
|
|
|
android:layout_width="match_parent"
|
2023-02-14 16:05:24 +05:30
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginHorizontal="10dp"
|
|
|
|
android:layout_marginVertical="17dp"
|
2022-05-07 21:52:45 +05:30
|
|
|
app:cardCornerRadius="27dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
2022-11-25 23:27:53 +05:30
|
|
|
android:id="@+id/optionsLL"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_gravity="center"
|
2023-02-14 16:05:24 +05:30
|
|
|
android:layout_marginHorizontal="8dp"
|
|
|
|
android:layout_marginVertical="18dp"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:gravity="center"
|
2022-12-20 21:35:37 +05:30
|
|
|
android:orientation="horizontal">
|
2022-01-28 18:31:41 +05:30
|
|
|
|
2023-02-14 16:05:24 +05:30
|
|
|
<com.github.libretube.ui.views.DrawableTextView
|
2022-05-07 21:52:45 +05:30
|
|
|
android:id="@+id/relPlayer_share"
|
2022-12-20 21:35:37 +05:30
|
|
|
style="@style/PlayerActionsText"
|
|
|
|
android:text="@string/share"
|
|
|
|
app:drawableTopCompat="@drawable/ic_share" />
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2023-02-14 16:05:24 +05:30
|
|
|
<com.github.libretube.ui.views.DrawableTextView
|
2022-05-07 21:52:45 +05:30
|
|
|
android:id="@+id/relPlayer_download"
|
2022-12-20 21:35:37 +05:30
|
|
|
style="@style/PlayerActionsText"
|
|
|
|
android:text="@string/download"
|
|
|
|
app:drawableTopCompat="@drawable/ic_download" />
|
2022-05-07 21:52:45 +05:30
|
|
|
|
2023-02-14 16:05:24 +05:30
|
|
|
<com.github.libretube.ui.views.DrawableTextView
|
2022-11-26 23:15:55 +05:30
|
|
|
android:id="@+id/relPlayer_pip"
|
2022-12-20 21:35:37 +05:30
|
|
|
style="@style/PlayerActionsText"
|
|
|
|
android:text="@string/pop_up"
|
|
|
|
app:drawableTopCompat="@drawable/ic_open" />
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2023-02-14 16:05:24 +05:30
|
|
|
<com.github.libretube.ui.views.DrawableTextView
|
2022-07-10 21:34:58 +05:30
|
|
|
android:id="@+id/relPlayer_background"
|
2022-12-20 21:35:37 +05:30
|
|
|
style="@style/PlayerActionsText"
|
|
|
|
android:text="@string/audio"
|
|
|
|
app:drawableTopCompat="@drawable/ic_headphones" />
|
2022-07-10 21:34:58 +05:30
|
|
|
|
2023-02-14 16:05:24 +05:30
|
|
|
<com.github.libretube.ui.views.DrawableTextView
|
2022-07-10 21:34:58 +05:30
|
|
|
android:id="@+id/relPlayer_save"
|
2022-12-20 21:35:37 +05:30
|
|
|
style="@style/PlayerActionsText"
|
|
|
|
android:text="@string/save"
|
|
|
|
app:drawableTopCompat="@drawable/ic_save" />
|
2022-05-07 21:52:45 +05:30
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-10-07 22:25:31 +05:30
|
|
|
<LinearLayout
|
2022-02-05 00:25:05 +05:30
|
|
|
android:id="@+id/player_channel"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-11-05 16:58:57 +05:30
|
|
|
android:layout_marginHorizontal="8dp"
|
2023-05-23 21:31:06 +05:30
|
|
|
android:layout_marginVertical="10dp"
|
2022-10-19 23:34:09 +05:30
|
|
|
android:background="@drawable/rounded_ripple"
|
2022-10-07 22:25:31 +05:30
|
|
|
android:orientation="horizontal"
|
2023-05-23 21:31:06 +05:30
|
|
|
android:padding="5dp">
|
2022-01-28 18:31:41 +05:30
|
|
|
|
2022-12-23 19:24:53 +05:30
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
2022-01-28 18:31:41 +05:30
|
|
|
android:id="@+id/player_channelImage"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2022-10-07 22:25:31 +05:30
|
|
|
android:layout_gravity="center"
|
2022-12-23 19:24:53 +05:30
|
|
|
android:layout_marginEnd="4dp"
|
2022-12-23 19:27:10 +05:30
|
|
|
app:shapeAppearance="@style/CircleImageView" />
|
2022-01-28 18:31:41 +05:30
|
|
|
|
2022-10-07 22:25:31 +05:30
|
|
|
<LinearLayout
|
2022-03-16 19:00:47 +05:30
|
|
|
android:layout_width="0dp"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_height="wrap_content"
|
2023-01-31 22:47:45 +05:30
|
|
|
android:layout_gravity="start|center_vertical"
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
2022-10-19 23:23:18 +05:30
|
|
|
android:layout_weight="1"
|
2022-11-05 16:58:57 +05:30
|
|
|
android:layoutDirection="locale"
|
2022-10-07 22:25:31 +05:30
|
|
|
android:orientation="vertical">
|
2022-01-28 18:31:41 +05:30
|
|
|
|
2022-10-07 22:25:31 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/player_channelName"
|
2023-01-31 22:47:45 +05:30
|
|
|
android:layout_width="wrap_content"
|
2022-10-07 22:25:31 +05:30
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="15sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/player_channelSubCount"
|
2023-01-31 22:47:45 +05:30
|
|
|
android:layout_width="wrap_content"
|
2022-10-07 22:25:31 +05:30
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="11sp"
|
2022-11-05 16:58:57 +05:30
|
|
|
tools:text="2.5M subscribers" />
|
2022-10-07 22:25:31 +05:30
|
|
|
|
|
|
|
</LinearLayout>
|
2022-01-28 18:31:41 +05:30
|
|
|
|
2022-02-13 22:43:26 +05:30
|
|
|
<com.google.android.material.button.MaterialButton
|
2022-01-28 18:31:41 +05:30
|
|
|
android:id="@+id/player_subscribe"
|
2022-05-22 04:11:53 +05:30
|
|
|
style="@style/Widget.Material3.Button.ElevatedButton"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-10-07 22:25:31 +05:30
|
|
|
android:layout_gravity="center"
|
2022-02-05 00:25:05 +05:30
|
|
|
android:text="@string/subscribe"
|
2023-06-19 17:16:52 +05:30
|
|
|
android:textColor="?colorControlNormal"
|
2022-07-11 19:55:47 +05:30
|
|
|
android:textSize="12sp"
|
2023-06-19 17:16:52 +05:30
|
|
|
app:cornerRadius="16dp" />
|
2022-10-07 22:25:31 +05:30
|
|
|
</LinearLayout>
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-11-12 23:10:54 +05:30
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/alternativeTrendingRec"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-11-12 23:34:40 +05:30
|
|
|
android:layout_marginHorizontal="12dp" />
|
2022-11-12 23:10:54 +05:30
|
|
|
|
2022-10-23 15:03:35 +05:30
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
android:id="@+id/comments_toggle"
|
|
|
|
style="@style/Widget.Material3.CardView.Elevated"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-05-23 21:31:06 +05:30
|
|
|
android:layout_marginHorizontal="12dp"
|
2023-06-24 23:27:00 +05:30
|
|
|
android:layout_marginVertical="16dp"
|
2022-10-23 15:03:35 +05:30
|
|
|
app:cardCornerRadius="18dp">
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2023-01-31 22:47:45 +05:30
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
2022-05-08 16:29:44 +05:30
|
|
|
android:layout_width="match_parent"
|
2023-01-31 22:47:45 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-10-23 15:03:35 +05:30
|
|
|
android:layout_margin="8dp"
|
2023-01-31 22:47:45 +05:30
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
android:text="@string/comments"
|
|
|
|
android:textAlignment="viewStart"
|
|
|
|
app:drawableEndCompat="@drawable/ic_arrow_up_down" />
|
2022-05-18 15:21:34 +05:30
|
|
|
|
2022-10-23 15:03:35 +05:30
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2022-05-08 16:29:44 +05:30
|
|
|
|
2022-10-23 15:03:35 +05:30
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:animateLayoutChanges="true"
|
|
|
|
android:descendantFocusability="blocksDescendants">
|
2022-05-07 21:52:45 +05:30
|
|
|
|
2022-05-08 16:03:01 +05:30
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2022-07-01 00:55:40 +05:30
|
|
|
android:id="@+id/related_rec_view"
|
2022-05-08 16:03:01 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-07-04 21:52:21 +05:30
|
|
|
android:layout_marginStart="10dp"
|
2022-05-08 16:03:01 +05:30
|
|
|
android:layout_marginTop="10dp"
|
2022-07-04 21:52:21 +05:30
|
|
|
android:layout_marginEnd="10dp"
|
2022-05-08 16:03:01 +05:30
|
|
|
android:layout_marginBottom="10dp"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:nestedScrollingEnabled="false" />
|
2022-01-28 18:31:41 +05:30
|
|
|
</RelativeLayout>
|
2022-05-07 21:52:45 +05:30
|
|
|
|
2021-12-12 17:38:23 +05:30
|
|
|
</LinearLayout>
|
2022-05-07 21:52:45 +05:30
|
|
|
|
2021-12-12 17:38:23 +05:30
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/main_container"
|
|
|
|
android:layout_width="match_parent"
|
2022-02-04 01:42:58 +05:30
|
|
|
android:layout_height="0dp"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:background="?attr/colorSurface"
|
2022-08-25 15:07:58 +05:30
|
|
|
app:layout_constraintDimensionRatio="16:9"
|
2021-12-12 17:38:23 +05:30
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-05-07 21:52:45 +05:30
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2022-01-28 22:40:32 +05:30
|
|
|
|
2023-06-11 17:48:52 +05:30
|
|
|
<com.github.libretube.ui.views.OnlinePlayerView
|
2021-12-12 17:38:23 +05:30
|
|
|
android:id="@+id/player"
|
|
|
|
android:layout_width="match_parent"
|
2022-07-03 16:58:24 +05:30
|
|
|
android:layout_height="match_parent"
|
2022-07-10 13:47:03 +05:30
|
|
|
android:background="@android:color/black"
|
2023-05-15 20:51:49 +05:30
|
|
|
app:controller_layout_id="@layout/exo_styled_player_control_view"
|
2021-12-12 17:38:23 +05:30
|
|
|
app:layout_constraintBottom_toBottomOf="@id/main_container"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/main_container"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/main_container"
|
2022-07-27 15:27:04 +05:30
|
|
|
app:show_buffering="when_playing">
|
2022-07-08 21:19:32 +05:30
|
|
|
|
2022-09-20 23:23:34 +05:30
|
|
|
<com.github.libretube.ui.views.DoubleTapOverlay
|
2022-07-19 17:38:12 +05:30
|
|
|
android:id="@+id/doubleTapOverlay"
|
2022-07-09 21:58:10 +05:30
|
|
|
android:layout_width="match_parent"
|
2022-08-01 12:47:36 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-07-29 11:27:16 +05:30
|
|
|
android:layout_gravity="center"
|
2022-08-01 12:47:36 +05:30
|
|
|
android:gravity="center" />
|
2022-07-08 21:19:32 +05:30
|
|
|
|
2022-11-25 20:23:41 +05:30
|
|
|
<com.github.libretube.ui.views.PlayerGestureControlsView
|
|
|
|
android:id="@+id/playerGestureControlsView"
|
2022-11-25 16:26:45 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:gravity="center" />
|
|
|
|
|
2022-09-17 22:39:11 +05:30
|
|
|
<com.google.android.material.card.MaterialCardView
|
2022-09-17 22:17:46 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2023-06-25 13:56:31 +05:30
|
|
|
android:layout_gravity="center|end"
|
|
|
|
android:layout_marginTop="15dp"
|
2022-09-17 22:39:11 +05:30
|
|
|
android:layout_marginEnd="-10dp"
|
2023-06-25 13:56:31 +05:30
|
|
|
android:paddingEnd="20dp"
|
2022-09-17 22:39:11 +05:30
|
|
|
app:cardBackgroundColor="#88000000"
|
2022-09-18 22:47:38 +05:30
|
|
|
app:strokeWidth="1dp"
|
2022-09-17 22:39:11 +05:30
|
|
|
tools:ignore="RtlSymmetry">
|
2022-09-17 22:17:46 +05:30
|
|
|
|
2023-02-01 22:32:28 +05:30
|
|
|
<com.github.libretube.ui.views.DrawableTextView
|
2022-09-17 22:39:11 +05:30
|
|
|
android:id="@+id/sb_skip_btn"
|
2022-09-17 22:17:46 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2023-02-18 14:09:04 +05:30
|
|
|
android:drawablePadding="20dp"
|
2022-09-17 22:39:11 +05:30
|
|
|
android:padding="10dp"
|
2023-02-01 22:32:28 +05:30
|
|
|
android:text="@string/skip_segment"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textSize="18sp"
|
2023-02-18 14:09:04 +05:30
|
|
|
android:visibility="gone"
|
2023-02-01 22:32:28 +05:30
|
|
|
app:drawableEndCompat="@drawable/ic_next"
|
|
|
|
app:drawableEndDimen="20dp"
|
|
|
|
app:drawableTint="@android:color/white" />
|
2022-09-17 22:39:11 +05:30
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2023-05-15 20:51:49 +05:30
|
|
|
|
2023-02-22 16:57:03 +05:30
|
|
|
<com.github.libretube.ui.views.AutoplayCountdownView
|
|
|
|
android:id="@+id/autoplay_countdown"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:visibility="gone" />
|
2021-12-12 17:38:23 +05:30
|
|
|
|
2023-06-11 17:48:52 +05:30
|
|
|
</com.github.libretube.ui.views.OnlinePlayerView>
|
2022-07-19 17:38:12 +05:30
|
|
|
|
2021-12-12 17:38:23 +05:30
|
|
|
<ImageView
|
|
|
|
android:id="@+id/close_imageView"
|
2023-08-14 19:19:49 +05:30
|
|
|
android:tooltipText="@string/tooltip_close"
|
2021-12-12 17:38:23 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:alpha="0"
|
2022-12-08 23:11:10 +05:30
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:padding="8dp"
|
2021-12-12 17:38:23 +05:30
|
|
|
android:src="@drawable/ic_close"
|
2021-12-14 02:58:17 +05:30
|
|
|
android:visibility="gone"
|
2022-02-02 18:08:57 +05:30
|
|
|
app:layout_constraintBottom_toBottomOf="@id/main_container"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/main_container"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/main_container" />
|
2021-12-12 17:38:23 +05:30
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/play_imageView"
|
2023-08-14 19:19:49 +05:30
|
|
|
android:tooltipText="@string/tooltip_play"
|
2021-12-12 17:38:23 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:alpha="0"
|
2022-12-08 23:11:10 +05:30
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:padding="8dp"
|
2021-12-12 17:38:23 +05:30
|
|
|
android:src="@drawable/ic_play"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:visibility="gone"
|
2021-12-12 17:38:23 +05:30
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/close_imageView"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/close_imageView"
|
2022-02-02 18:08:57 +05:30
|
|
|
app:layout_constraintTop_toTopOf="@+id/close_imageView" />
|
2021-12-12 17:38:23 +05:30
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/title_textView"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:alpha="0"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2022-12-08 23:11:10 +05:30
|
|
|
android:paddingHorizontal="8dp"
|
2022-08-01 12:47:36 +05:30
|
|
|
android:paddingVertical="15dp"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:visibility="gone"
|
2021-12-12 17:38:23 +05:30
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/play_imageView"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/play_imageView"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/player"
|
2022-02-02 18:08:57 +05:30
|
|
|
app:layout_constraintTop_toTopOf="@+id/play_imageView" />
|
2021-12-12 17:38:23 +05:30
|
|
|
|
2022-09-20 23:23:34 +05:30
|
|
|
</com.github.libretube.ui.views.SingleViewTouchableMotionLayout>
|