PlayerAndroid/app/src/main/res/layout/media_button.xml

84 lines
3.3 KiB
XML
Raw Normal View History

2018-12-05 12:31:56 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-02-23 17:39:02 +00:00
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2018-12-05 12:31:56 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layoutDirection="ltr"
android:paddingStart="4dp"
android:paddingEnd="4dp"
tools:ignore="ContentDescription,UnusedAttribute"
tools:showIn="@layout/fragment_player_playback_controls">
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-05 12:31:56 +00:00
android:id="@+id/previousButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginEnd="8dp"
android:layout_toStartOf="@+id/dummy_fab"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_skip_previous_white_24dp"
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-05 12:31:56 +00:00
android:id="@+id/nextButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="8dp"
android:layout_toEndOf="@+id/dummy_fab"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_skip_next_white_24dp"
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-05 12:31:56 +00:00
android:id="@+id/repeatButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_repeat_white_24dp"
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-05 12:31:56 +00:00
android:id="@+id/shuffleButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:background="?attr/roundSelector"
android:padding="16dp"
android:scaleType="fitCenter"
app:srcCompat="@drawable/ic_shuffle_white_24dp"
tools:ignore="MissingPrefix"
tools:tint="@color/md_black_1000" />
<Space
android:id="@+id/dummy_fab"
android:layout_width="56dp"
android:layout_height="56dp"
android:layout_centerInParent="true" />
2019-07-27 05:05:52 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-05 12:31:56 +00:00
android:id="@+id/playPauseButton"
android:layout_width="52dp"
android:layout_height="52dp"
android:layout_centerInParent="true"
android:background="@drawable/color_circle_gradient"
android:elevation="4dp"
android:padding="16dp"
2019-06-05 08:17:45 +00:00
app:srcCompat="@drawable/ic_play_arrow_white_32dp" />
2018-12-05 12:31:56 +00:00
</RelativeLayout>