mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-09 00:07:30 +00:00
120 lines
5.2 KiB
XML
120 lines
5.2 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout 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="wrap_content"
|
||
|
android:background="@color/black_a80"
|
||
|
android:padding="8dp">
|
||
|
|
||
|
<androidx.appcompat.widget.AppCompatTextView
|
||
|
android:id="@+id/from_time"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textColor="@color/white"
|
||
|
app:layout_constraintBottom_toTopOf="@id/play_pause"
|
||
|
app:layout_constraintEnd_toStartOf="@id/timeline"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
tools:text="0:00" />
|
||
|
|
||
|
<com.google.android.material.slider.Slider
|
||
|
android:id="@+id/timeline"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:contentDescription="@string/player_timeline_desc"
|
||
|
android:enabled="false"
|
||
|
android:value="0"
|
||
|
android:valueFrom="0.0"
|
||
|
android:valueTo="1.0"
|
||
|
app:labelStyle="@style/Widget.MaterialComponents.Tooltip.ExoPlayer"
|
||
|
app:layout_constraintBottom_toTopOf="@id/play_pause"
|
||
|
app:layout_constraintEnd_toStartOf="@id/to_time"
|
||
|
app:layout_constraintStart_toEndOf="@id/from_time"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
app:thumbColor="@color/white"
|
||
|
app:trackColorActive="@color/white"
|
||
|
app:trackColorInactive="@color/grey_800" />
|
||
|
|
||
|
<androidx.appcompat.widget.AppCompatTextView
|
||
|
android:id="@+id/to_time"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textColor="@color/white"
|
||
|
app:layout_constraintBottom_toTopOf="@id/play_pause"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintStart_toEndOf="@id/timeline"
|
||
|
app:layout_constraintTop_toTopOf="parent"
|
||
|
tools:text="0:00" />
|
||
|
|
||
|
<com.google.android.material.button.MaterialButton
|
||
|
android:id="@+id/rew_with_amount"
|
||
|
style="@style/Widget.App.MaterialButton.IconOnly.BorderlessRipple"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:visibility="visible"
|
||
|
app:icon="@drawable/ic_replay_5_24"
|
||
|
app:iconSize="24dp"
|
||
|
app:iconTint="@color/white"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toStartOf="@id/play_pause"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
app:layout_constraintTop_toBottomOf="@id/timeline"
|
||
|
tools:visibility="visible" />
|
||
|
|
||
|
<com.google.android.material.button.MaterialButton
|
||
|
android:id="@+id/play_pause"
|
||
|
style="@style/Widget.App.MaterialButton.IconOnly.BorderlessRipple"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:icon="@drawable/ic_play_arrow_24"
|
||
|
app:iconSize="24dp"
|
||
|
app:iconTint="@color/white"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toStartOf="@id/ff_with_amount"
|
||
|
app:layout_constraintStart_toEndOf="@id/rew_with_amount"
|
||
|
app:layout_constraintTop_toBottomOf="@id/timeline"
|
||
|
tools:visibility="visible" />
|
||
|
|
||
|
<com.google.android.material.button.MaterialButton
|
||
|
android:id="@+id/ff_with_amount"
|
||
|
style="@style/Widget.App.MaterialButton.IconOnly.BorderlessRipple"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:icon="@drawable/ic_forward_5_24"
|
||
|
app:iconSize="24dp"
|
||
|
app:iconTint="@color/white"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toStartOf="@id/mute"
|
||
|
app:layout_constraintStart_toEndOf="@id/play_pause"
|
||
|
app:layout_constraintTop_toBottomOf="@id/timeline"
|
||
|
tools:visibility="visible" />
|
||
|
|
||
|
<com.google.android.material.button.MaterialButton
|
||
|
android:id="@+id/mute"
|
||
|
style="@style/Widget.App.MaterialButton.IconOnly.BorderlessRipple"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
app:icon="@drawable/ic_volume_off_24"
|
||
|
app:iconSize="24dp"
|
||
|
app:iconTint="@color/white"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toStartOf="@id/speed"
|
||
|
app:layout_constraintStart_toEndOf="@id/ff_with_amount"
|
||
|
app:layout_constraintTop_toBottomOf="@id/timeline"
|
||
|
tools:visibility="visible" />
|
||
|
|
||
|
<com.google.android.material.button.MaterialButton
|
||
|
android:id="@+id/speed"
|
||
|
style="@style/Widget.App.MaterialButton.IconOnly.BorderlessRipple"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="@string/one_x"
|
||
|
android:textAllCaps="false"
|
||
|
android:textColor="@color/white"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintStart_toEndOf="@id/mute"
|
||
|
app:layout_constraintTop_toBottomOf="@id/timeline"
|
||
|
tools:visibility="visible" />
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|