2021-12-12 17:38:23 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-02-01 21:22:06 +05:30
|
|
|
<com.github.libretube.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"
|
|
|
|
app:layoutDescription="@xml/player_scene"
|
2022-05-07 21:52:45 +05:30
|
|
|
tools:context=".PlayerFragment">
|
2021-12-12 17:38:23 +05:30
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:id="@+id/scrollView2"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:background="?attr/colorSurface"
|
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-05-07 21:52:45 +05:30
|
|
|
android:orientation="vertical">
|
2021-12-14 21:45:53 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<RelativeLayout
|
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"
|
|
|
|
android:id="@+id/player_title_layout"
|
|
|
|
android:orientation="horizontal">
|
2022-03-27 11:49:17 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/player_title"
|
|
|
|
android:layout_width="wrap_content"
|
2022-03-27 11:49:17 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_marginStart="10dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:text="Video Title"
|
|
|
|
android:textSize="22sp" />
|
2022-03-27 11:49:17 +05:30
|
|
|
|
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<ImageView
|
|
|
|
android:id="@+id/player_description_arrow"
|
|
|
|
android:layout_width="wrap_content"
|
2022-03-27 11:49:17 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:src="@drawable/ic_arrow_down" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/player_views_info"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:text="10M views 2 days ago " />
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/player_description"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:autoLink="web"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:visibility="gone" />
|
2022-01-28 18:31:41 +05:30
|
|
|
|
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"
|
|
|
|
android:layout_height="80dp"
|
|
|
|
android:layout_margin="17dp"
|
|
|
|
app:cardCornerRadius="27dp">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
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"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="horizontal">
|
2022-01-28 18:31:41 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_weight=".25"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:src="@drawable/ic_like" />
|
2022-01-28 18:31:41 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/textLike"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="4.2K" />
|
|
|
|
</LinearLayout>
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/relPlayer_share"
|
|
|
|
android:layout_width="0dp"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_weight=".25"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
2022-03-15 21:36:42 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:src="@drawable/ic_share" />
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/share" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/relPlayer_download"
|
|
|
|
android:layout_width="0dp"
|
2022-03-15 21:36:42 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_weight=".25"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:src="@drawable/ic_save" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/download" />
|
|
|
|
>
|
|
|
|
</LinearLayout>
|
2021-12-14 21:45:53 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/relPlayer_vlc"
|
|
|
|
android:layout_width="0dp"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_weight=".25"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:padding="2dp"
|
|
|
|
android:src="@drawable/ic_vlc" />
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="VLC" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/save"
|
|
|
|
android:layout_width="0dp"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_height="wrap_content"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_weight=".25"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:src="@drawable/ic_save" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/save" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<RelativeLayout
|
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-02-13 17:23:04 +05:30
|
|
|
android:layout_marginStart="8dp"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
android:layout_marginBottom="15dp"
|
|
|
|
android:background="?android:attr/selectableItemBackground"
|
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="8dp">
|
2022-01-28 18:31:41 +05:30
|
|
|
|
|
|
|
<de.hdodenhof.circleimageview.CircleImageView
|
|
|
|
android:id="@+id/player_channelImage"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_centerVertical="true"
|
2022-02-04 01:47:08 +05:30
|
|
|
android:layout_marginEnd="4dp" />
|
2022-01-28 18:31:41 +05:30
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/player_channelName"
|
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"
|
|
|
|
android:layout_centerVertical="true"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_marginLeft="5dp"
|
2022-03-16 19:00:47 +05:30
|
|
|
android:layout_toStartOf="@+id/player_subscribe"
|
2022-03-29 22:32:34 +05:30
|
|
|
android:layout_toEndOf="@+id/player_channelImage"
|
2022-03-16 19:00:47 +05:30
|
|
|
android:ellipsize="end"
|
2022-03-29 22:32:34 +05:30
|
|
|
android:maxLines="1"
|
|
|
|
android:text=""
|
2022-05-07 21:52:45 +05:30
|
|
|
android:textSize="15dp" />
|
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"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-02-04 01:47:08 +05:30
|
|
|
android:layout_alignParentEnd="true"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_centerVertical="true"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:backgroundTint="@color/colorPrimary"
|
|
|
|
android:drawableLeft="@drawable/ic_bell"
|
|
|
|
android:drawableTint="@color/white"
|
2022-02-05 00:25:05 +05:30
|
|
|
android:text="@string/subscribe"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:textColor="@color/white"
|
|
|
|
android:textSize="12dp"
|
|
|
|
app:cornerRadius="11dp" />
|
2022-01-28 18:31:41 +05:30
|
|
|
</RelativeLayout>
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:descendantFocusability="blocksDescendants">
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-05-07 21:52:45 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/tv_suggestion"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:text="More like that"
|
|
|
|
android:textSize="17sp" />
|
|
|
|
|
2022-02-02 18:08:57 +05:30
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/player_recView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-05-07 21:52:45 +05:30
|
|
|
android:layout_below="@id/tv_suggestion"
|
|
|
|
android:layout_margin="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
|
|
|
|
|
|
|
<!-- <LinearLayout-->
|
|
|
|
<!-- android:id="@+id/linLayout"-->
|
|
|
|
<!-- android:layout_width="match_parent"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:orientation="vertical"-->
|
|
|
|
<!-- >-->
|
|
|
|
|
|
|
|
<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
|
|
|
|
<!-- android:id="@+id/player_info_layout"-->
|
|
|
|
<!-- android:layout_width="match_parent"-->
|
|
|
|
<!-- android:layout_height="wrap_content">-->
|
|
|
|
|
|
|
|
<!-- <androidx.constraintlayout.widget.ConstraintLayout-->
|
|
|
|
<!-- android:id="@+id/player_title_layout"-->
|
|
|
|
<!-- android:layout_width="match_parent"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
|
|
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
|
|
|
<!-- app:layout_constraintTop_toTopOf="parent">-->
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- android:id="@+id/player_title"-->
|
|
|
|
<!-- android:layout_width="0dp"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:padding="8dp"-->
|
|
|
|
<!-- android:paddingLeft="8dp"-->
|
|
|
|
<!-- android:paddingRight="8dp"-->
|
|
|
|
<!-- android:text="Loading..."-->
|
|
|
|
<!-- android:textSize="18sp"-->
|
|
|
|
<!-- android:textStyle="bold"-->
|
|
|
|
<!-- app:layout_constraintEnd_toStartOf="@id/player_description_arrow"-->
|
|
|
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
|
|
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- android:id="@+id/player_views_info"-->
|
|
|
|
<!-- android:layout_width="0dp"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:paddingLeft="8dp"-->
|
|
|
|
<!-- android:paddingRight="8dp"-->
|
|
|
|
<!-- android:text=""-->
|
|
|
|
<!-- android:textSize="12sp"-->
|
|
|
|
<!-- app:layout_constraintEnd_toStartOf="@id/player_description_arrow"-->
|
|
|
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
|
|
|
<!-- app:layout_constraintTop_toBottomOf="@+id/player_title" />-->
|
|
|
|
|
|
|
|
<!-- <ImageView-->
|
|
|
|
<!-- android:id="@+id/player_description_arrow"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_marginEnd="8dp"-->
|
|
|
|
<!-- android:paddingLeft="16dp"-->
|
|
|
|
<!-- android:src="@drawable/ic_arrow_down"-->
|
|
|
|
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
|
|
|
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
|
|
|
<!-- app:layout_constraintTop_toTopOf="parent" />-->
|
|
|
|
<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- android:id="@+id/player_description"-->
|
|
|
|
<!-- android:layout_width="match_parent"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:padding="8dp"-->
|
|
|
|
<!-- android:textSize="14sp"-->
|
|
|
|
<!-- android:visibility="gone"-->
|
|
|
|
<!-- android:autoLink="web"-->
|
|
|
|
<!-- android:textIsSelectable="true"-->
|
|
|
|
<!-- app:layout_constraintEnd_toEndOf="parent"-->
|
|
|
|
<!-- app:layout_constraintStart_toStartOf="parent"-->
|
|
|
|
<!-- app:layout_constraintTop_toBottomOf="@id/player_title_layout" />-->
|
|
|
|
<!-- </androidx.constraintlayout.widget.ConstraintLayout>-->
|
|
|
|
|
|
|
|
<!-- <LinearLayout-->
|
|
|
|
<!-- android:layout_width="match_parent"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:orientation="horizontal"-->
|
|
|
|
<!-- android:weightSum="5"-->
|
|
|
|
<!-- android:baselineAligned="false">-->
|
|
|
|
|
|
|
|
<!-- <RelativeLayout-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_weight="1">-->
|
|
|
|
|
|
|
|
<!-- <ImageView-->
|
|
|
|
<!-- android:id="@+id/player_like"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_centerInParent="true"-->
|
|
|
|
<!-- android:layout_marginBottom="16dp"-->
|
|
|
|
<!-- android:src="@drawable/ic_like"-->
|
|
|
|
<!-- android:contentDescription="like"/>-->
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- android:id="@+id/textLike"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_below="@id/player_like"-->
|
|
|
|
<!-- android:layout_centerHorizontal="true"-->
|
|
|
|
<!-- android:text="1K" />-->
|
|
|
|
<!-- </RelativeLayout>-->
|
|
|
|
|
|
|
|
<!-- <RelativeLayout-->
|
|
|
|
<!-- android:id="@+id/relPlayer_share"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_weight="1"-->
|
|
|
|
<!-- android:background="?android:attr/selectableItemBackground">-->
|
|
|
|
<!-- <ImageView-->
|
|
|
|
<!-- android:id="@+id/player_share"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_centerInParent="true"-->
|
|
|
|
<!-- android:layout_marginBottom="16dp"-->
|
|
|
|
<!-- android:src="@drawable/ic_share" />-->
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- android:id="@+id/textShare"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_below="@id/player_share"-->
|
|
|
|
<!-- android:layout_centerHorizontal="true"-->
|
|
|
|
<!-- android:text="@string/share" />-->
|
|
|
|
<!-- </RelativeLayout>-->
|
|
|
|
|
|
|
|
<!-- <RelativeLayout-->
|
|
|
|
<!-- android:id="@+id/relPlayer_download"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_weight="1"-->
|
|
|
|
<!-- android:background="?android:attr/selectableItemBackground">-->
|
|
|
|
|
|
|
|
<!-- <ImageView-->
|
|
|
|
<!-- android:id="@+id/player_download"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_centerInParent="true"-->
|
|
|
|
<!-- android:layout_marginBottom="16dp"-->
|
|
|
|
<!-- android:src="@drawable/ic_download" />-->
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- android:id="@+id/textDownload"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_below="@id/player_download"-->
|
|
|
|
<!-- android:layout_centerHorizontal="true"-->
|
|
|
|
<!-- android:text="@string/download" />-->
|
|
|
|
<!-- </RelativeLayout>-->
|
|
|
|
<!-- <RelativeLayout-->
|
|
|
|
<!-- android:id="@+id/relPlayer_vlc"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_weight="1"-->
|
|
|
|
<!-- android:background="?android:attr/selectableItemBackground">-->
|
|
|
|
|
|
|
|
<!-- <ImageView-->
|
|
|
|
<!-- android:id="@+id/player_vlc"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_centerInParent="true"-->
|
|
|
|
<!-- android:layout_marginBottom="16dp"-->
|
|
|
|
<!-- android:src="@drawable/ic_vlc" />-->
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- android:id="@+id/textVlc"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_below="@id/player_vlc"-->
|
|
|
|
<!-- android:layout_centerHorizontal="true"-->
|
|
|
|
<!-- android:text="@string/vlc" />-->
|
|
|
|
<!-- </RelativeLayout>-->
|
|
|
|
<!-- <RelativeLayout-->
|
|
|
|
<!-- android:id="@+id/save"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_weight="1"-->
|
|
|
|
<!-- android:background="?android:attr/selectableItemBackground">-->
|
|
|
|
|
|
|
|
<!-- <ImageView-->
|
|
|
|
<!-- android:id="@+id/player_save"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_centerInParent="true"-->
|
|
|
|
<!-- android:layout_marginBottom="16dp"-->
|
|
|
|
<!-- android:src="@drawable/ic_save" />-->
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- android:id="@+id/textSave"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_below="@id/player_save"-->
|
|
|
|
<!-- android:layout_centerHorizontal="true"-->
|
|
|
|
<!-- android:text="@string/save" />-->
|
|
|
|
<!-- </RelativeLayout>-->
|
|
|
|
<!-- </LinearLayout>-->
|
|
|
|
|
|
|
|
<!-- <RelativeLayout-->
|
|
|
|
<!-- android:id="@+id/player_channel"-->
|
|
|
|
<!-- android:layout_width="match_parent"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_marginTop="8dp"-->
|
|
|
|
<!-- android:paddingLeft="8dp"-->
|
|
|
|
<!-- android:paddingRight="8dp"-->
|
|
|
|
<!-- android:layout_marginStart="8dp"-->
|
|
|
|
<!-- android:background="?android:attr/selectableItemBackground">-->
|
|
|
|
|
|
|
|
<!-- <de.hdodenhof.circleimageview.CircleImageView-->
|
|
|
|
<!-- android:id="@+id/player_channelImage"-->
|
|
|
|
<!-- android:layout_width="40dp"-->
|
|
|
|
<!-- android:layout_height="40dp"-->
|
|
|
|
<!-- android:layout_centerVertical="true"-->
|
|
|
|
<!-- android:layout_marginEnd="4dp" />-->
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- android:id="@+id/player_channelName"-->
|
|
|
|
<!-- android:layout_width="0dp"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_centerVertical="true"-->
|
|
|
|
<!-- android:layout_toStartOf="@+id/player_subscribe"-->
|
|
|
|
<!-- android:layout_toEndOf="@+id/player_channelImage"-->
|
|
|
|
<!-- android:ellipsize="end"-->
|
|
|
|
<!-- android:maxLines="1"-->
|
|
|
|
<!-- android:text=""-->
|
|
|
|
<!-- android:textStyle="bold" />-->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <com.google.android.material.button.MaterialButton-->
|
|
|
|
<!-- android:id="@+id/player_subscribe"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_alignParentEnd="true"-->
|
|
|
|
<!-- android:layout_centerVertical="true"-->
|
|
|
|
<!-- android:background="?android:attr/selectableItemBackground"-->
|
|
|
|
<!-- android:text="@string/subscribe"-->
|
|
|
|
<!-- android:textColor="@color/colorPrimary" />-->
|
|
|
|
<!-- </RelativeLayout>-->
|
|
|
|
|
|
|
|
<!-- <RelativeLayout-->
|
|
|
|
<!-- android:layout_width="match_parent"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:descendantFocusability="blocksDescendants">-->
|
|
|
|
|
|
|
|
<!-- <androidx.recyclerview.widget.RecyclerView-->
|
|
|
|
<!-- android:id="@+id/player_recView"-->
|
|
|
|
<!-- android:layout_width="match_parent"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:nestedScrollingEnabled="false" />-->
|
|
|
|
<!-- </RelativeLayout>-->
|
|
|
|
<!-- </LinearLayout>-->
|
|
|
|
|
|
|
|
|
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"
|
2021-12-12 17:38:23 +05:30
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2022-05-07 21:52:45 +05:30
|
|
|
app:layout_constraintHeight_percent="0.35"
|
2021-12-12 17:38:23 +05:30
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
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
|
|
|
|
2022-02-01 21:22:06 +05:30
|
|
|
<com.github.libretube.CustomExoPlayerView
|
2021-12-12 17:38:23 +05:30
|
|
|
android:id="@+id/player"
|
|
|
|
android:layout_width="match_parent"
|
2021-12-16 03:54:40 +05:30
|
|
|
android:layout_height="0dp"
|
2022-02-14 15:13:10 +05:30
|
|
|
android:background="#000000"
|
2021-12-12 17:38:23 +05:30
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/main_container"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/main_container"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/main_container"
|
2022-02-14 15:13:10 +05:30
|
|
|
app:show_buffering="always" />
|
2021-12-12 17:38:23 +05:30
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/close_imageView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:alpha="0"
|
|
|
|
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"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="24dp"
|
|
|
|
android:alpha="0"
|
|
|
|
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:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="12dp"
|
|
|
|
android:alpha="0"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
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-04-29 01:19:14 +05:30
|
|
|
</com.github.libretube.SingleViewTouchableMotionLayout>
|