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"
|
|
|
|
tools:context=".PlayerFragment"
|
|
|
|
>
|
|
|
|
|
|
|
|
<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"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/main_container"
|
|
|
|
>
|
|
|
|
|
|
|
|
<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"
|
2021-12-14 21:45:53 +05:30
|
|
|
android:orientation="vertical"
|
|
|
|
|
|
|
|
>
|
2021-12-12 17:38:23 +05:30
|
|
|
|
|
|
|
<TextView
|
2022-01-28 18:31:41 +05:30
|
|
|
android:id="@+id/player_description"
|
2021-12-12 17:38:23 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:paddingLeft="8dp"
|
|
|
|
android:paddingRight="8dp"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:text="Description"
|
2022-01-28 22:40:32 +05:30
|
|
|
android:textSize="15sp"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:layout_margin="7dp"
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<TextView
|
|
|
|
android:id="@+id/player_sub"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="8dp"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:paddingRight="8dp"
|
|
|
|
android:text="" />
|
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:weightSum="4">
|
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:layout_weight="1">
|
2022-01-28 18:31:41 +05:30
|
|
|
|
|
|
|
<ImageView
|
2022-01-28 22:40:32 +05:30
|
|
|
android:id="@+id/player_like"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginBottom="16dp"
|
2022-01-28 22:40:32 +05:30
|
|
|
android:src="@drawable/ic_like" />
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<TextView
|
2022-02-02 18:08:57 +05:30
|
|
|
android:id="@+id/textLike"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/player_like"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:text="1K" />
|
2022-01-28 18:31:41 +05:30
|
|
|
</RelativeLayout>
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:layout_weight="1">
|
2022-01-28 18:31:41 +05:30
|
|
|
|
|
|
|
<ImageView
|
2022-02-02 18:08:57 +05:30
|
|
|
android:id="@+id/player_share"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginBottom="16dp"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:src="@drawable/ic_share" />
|
2022-01-28 18:31:41 +05:30
|
|
|
|
|
|
|
<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>
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:layout_weight="1">
|
2022-01-28 18:31:41 +05:30
|
|
|
|
|
|
|
<ImageView
|
2022-02-02 18:08:57 +05:30
|
|
|
android:id="@+id/player_download"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginBottom="16dp"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:src="@drawable/ic_download" />
|
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<TextView
|
2022-02-02 18:08:57 +05:30
|
|
|
android:id="@+id/textDownload"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/player_download"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:text="@string/download" />
|
2022-01-28 18:31:41 +05:30
|
|
|
</RelativeLayout>
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:layout_weight="1">
|
2021-12-14 21:45:53 +05:30
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<ImageView
|
2022-02-02 18:08:57 +05:30
|
|
|
android:id="@+id/player_save"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginBottom="16dp"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:src="@drawable/ic_save" />
|
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<TextView
|
2022-02-02 18:08:57 +05:30
|
|
|
android:id="@+id/textSave"
|
2022-01-28 18:31:41 +05:30
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/player_save"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:text="@string/save" />
|
2022-01-28 18:31:41 +05:30
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
2022-02-02 18:08:57 +05:30
|
|
|
|
2022-01-28 18:31:41 +05:30
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:paddingLeft="8dp"
|
2022-02-02 18:08:57 +05:30
|
|
|
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-02 18:08:57 +05:30
|
|
|
android:layout_marginRight="4dp" />
|
2022-01-28 18:31:41 +05:30
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/player_channelName"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toRightOf="@+id/player_channelImage"
|
|
|
|
android:text=""
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/player_subscribe"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
2022-02-02 18:08:57 +05:30
|
|
|
android:background="@android:color/transparent"
|
|
|
|
android:text="SUBSCRIBE"
|
|
|
|
android:textColor="@color/colorPrimary" />
|
2022-01-28 18:31:41 +05:30
|
|
|
</RelativeLayout>
|
2022-02-02 18:08:57 +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
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/player_recView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:nestedScrollingEnabled="false" />
|
2022-01-28 18:31:41 +05:30
|
|
|
</RelativeLayout>
|
2021-12-12 17:38:23 +05:30
|
|
|
</LinearLayout>
|
|
|
|
</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"
|
|
|
|
app:layout_constraintHeight_percent="0.35"
|
2021-12-12 17:38:23 +05:30
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2022-02-02 18:08:57 +05:30
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
android:background="?attr/colorSurface"
|
|
|
|
/>
|
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"
|
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-02 18:08:57 +05:30
|
|
|
app:show_buffering="always"
|
|
|
|
android:background="?attr/colorSurface"
|
|
|
|
/>
|
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-02-01 21:22:06 +05:30
|
|
|
</com.github.libretube.SingleViewTouchableMotionLayout>
|