2023-01-13 22:50:00 +05:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1">
|
|
|
|
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
|
|
android:id="@+id/thumbnail"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginHorizontal="20dp"
|
|
|
|
android:layout_marginVertical="10dp"
|
|
|
|
android:adjustViewBounds="true"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearance.Material3.Corner.Small"
|
|
|
|
tools:src="@tools:sample/backgrounds/scenic" />
|
|
|
|
|
2023-01-31 22:27:24 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/volumeControls"
|
|
|
|
android:layout_width="42dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="@drawable/controls_layout_bg"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:ignore="RtlHardcoded">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/volume_textView"
|
|
|
|
style="@style/SwipeControlString"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
app:autoSizeTextType="uniform" />
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/volume_progressBar"
|
|
|
|
style="@android:style/Widget.ProgressBar.Horizontal"
|
|
|
|
android:layout_width="7dp"
|
|
|
|
android:layout_height="100dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginVertical="4dp"
|
|
|
|
android:progressDrawable="@drawable/vertical_progressbar" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/volume_imageView"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:contentDescription="@string/volume"
|
|
|
|
android:src="@drawable/ic_volume_up" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2023-01-21 22:50:45 +05:30
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progress"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center" />
|
|
|
|
|
2023-01-13 22:50:00 +05:30
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_margin="20dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
2023-01-21 23:01:50 +05:30
|
|
|
style="@style/TextViewMarquee"
|
2023-01-21 22:50:45 +05:30
|
|
|
android:layout_width="match_parent"
|
2023-01-13 22:50:00 +05:30
|
|
|
android:layout_height="wrap_content"
|
2023-01-13 23:23:57 +05:30
|
|
|
android:textSize="24sp" />
|
2023-01-13 22:50:00 +05:30
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/uploader"
|
2023-01-21 23:01:50 +05:30
|
|
|
style="@style/TextViewMarquee"
|
2023-01-21 22:50:45 +05:30
|
|
|
android:layout_width="match_parent"
|
2023-01-13 22:50:00 +05:30
|
|
|
android:layout_height="wrap_content"
|
2023-01-21 16:16:56 +05:30
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:textSize="18sp" />
|
2023-01-13 22:50:00 +05:30
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<com.google.android.material.slider.Slider
|
|
|
|
android:id="@+id/time_bar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2023-01-21 16:16:56 +05:30
|
|
|
android:layout_marginHorizontal="20dp"
|
|
|
|
app:labelBehavior="gone" />
|
2023-01-13 22:50:00 +05:30
|
|
|
|
2023-01-14 00:05:32 +05:30
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingHorizontal="20dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/current_position"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="start|center"
|
2023-01-21 16:16:56 +05:30
|
|
|
tools:text="00:00" />
|
2023-01-14 00:05:32 +05:30
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/duration"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end|center"
|
2023-01-21 16:16:56 +05:30
|
|
|
tools:text="10:15" />
|
2023-01-14 00:05:32 +05:30
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
2023-01-13 22:50:00 +05:30
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2023-01-21 22:50:45 +05:30
|
|
|
android:layout_marginTop="10dp"
|
2023-01-21 16:23:52 +05:30
|
|
|
android:layout_marginBottom="36dp">
|
2023-01-13 22:50:00 +05:30
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/prev"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginHorizontal="20dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:src="@drawable/ic_prev" />
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/play_pause"
|
|
|
|
android:layout_width="72dp"
|
|
|
|
android:layout_height="72dp"
|
|
|
|
android:insetLeft="0dp"
|
|
|
|
android:insetTop="0dp"
|
|
|
|
android:insetRight="0dp"
|
|
|
|
android:insetBottom="0dp"
|
2023-01-13 23:05:38 +05:30
|
|
|
app:icon="@drawable/ic_pause"
|
2023-01-13 22:50:00 +05:30
|
|
|
app:iconSize="24dp"
|
|
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearance.Material3.Corner.Full" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/next"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginHorizontal="20dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:src="@drawable/ic_next" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2023-01-21 16:16:56 +05:30
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
style="@style/Widget.Material3.CardView.Elevated"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2023-01-21 22:50:45 +05:30
|
|
|
android:layout_marginBottom="30dp"
|
|
|
|
app:cardCornerRadius="18dp">
|
2023-01-21 16:16:56 +05:30
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:padding="15dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/open_queue"
|
|
|
|
style="@style/AudioPlayerButton"
|
|
|
|
android:src="@drawable/ic_queue" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/playback_options"
|
|
|
|
style="@style/AudioPlayerButton"
|
|
|
|
android:layout_width="27dp"
|
|
|
|
android:layout_height="27dp"
|
|
|
|
android:src="@drawable/ic_speed" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/open_video"
|
|
|
|
style="@style/AudioPlayerButton"
|
|
|
|
android:src="@drawable/ic_video" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/share"
|
|
|
|
style="@style/AudioPlayerButton"
|
|
|
|
android:src="@drawable/ic_share" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
2023-01-13 22:50:00 +05:30
|
|
|
</LinearLayout>
|