mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
211 lines
No EOL
8.4 KiB
XML
211 lines
No EOL
8.4 KiB
XML
<?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"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="20dp"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:clipChildren="false">
|
|
|
|
<!-- Header -->
|
|
<ImageView
|
|
android:id="@+id/song_cover_image_view"
|
|
android:layout_width="54dp"
|
|
android:layout_height="54dp"
|
|
android:layout_margin="2dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ToggleButton
|
|
android:id="@+id/button_favorite"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="@drawable/button_favorite_selector"
|
|
android:checked="false"
|
|
android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
android:gravity="center_vertical"
|
|
android:text=""
|
|
android:textOff=""
|
|
android:textOn=""
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/song_title_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:ellipsize="marquee"
|
|
android:paddingStart="12dp"
|
|
android:paddingEnd="12dp"
|
|
android:singleLine="true"
|
|
android:text="@string/label_placeholder"
|
|
app:layout_constraintEnd_toStartOf="@id/button_favorite"
|
|
app:layout_constraintStart_toEndOf="@+id/song_cover_image_view"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/song_artist_text_view"
|
|
style="@style/LabelSmall"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="12dp"
|
|
android:paddingEnd="12dp"
|
|
android:text="@string/label_placeholder"
|
|
app:layout_constraintEnd_toStartOf="@id/button_favorite"
|
|
app:layout_constraintStart_toEndOf="@+id/song_cover_image_view"
|
|
app:layout_constraintTop_toBottomOf="@+id/song_title_text_view" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/option_linear_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="12dp"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/play_radio_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="12dp"
|
|
android:text="@string/song_bottom_sheet_instant_mix" />
|
|
|
|
<TextView
|
|
android:id="@+id/play_next_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="12dp"
|
|
android:text="@string/song_bottom_sheet_play_next" />
|
|
|
|
<TextView
|
|
android:id="@+id/add_to_queue_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="12dp"
|
|
android:text="@string/song_bottom_sheet_add_to_queue" />
|
|
|
|
<TextView
|
|
android:id="@+id/rate_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="12dp"
|
|
android:text="@string/song_bottom_sheet_rate" />
|
|
|
|
<TextView
|
|
android:id="@+id/download_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="12dp"
|
|
android:text="@string/song_bottom_sheet_download" />
|
|
|
|
<TextView
|
|
android:id="@+id/remove_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="12dp"
|
|
android:text="@string/song_bottom_sheet_remove" />
|
|
|
|
<TextView
|
|
android:id="@+id/add_to_playlist_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="12dp"
|
|
android:text="@string/song_bottom_sheet_add_to_playlist" />
|
|
|
|
<TextView
|
|
android:id="@+id/go_to_album_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="12dp"
|
|
android:text="@string/song_bottom_sheet_go_to_album" />
|
|
|
|
<TextView
|
|
android:id="@+id/go_to_artist_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="12dp"
|
|
android:text="@string/song_bottom_sheet_go_to_artist" />
|
|
|
|
<TextView
|
|
android:id="@+id/share_text_view"
|
|
style="@style/LabelMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:paddingStart="20dp"
|
|
android:paddingTop="12dp"
|
|
android:paddingEnd="20dp"
|
|
android:paddingBottom="12dp"
|
|
android:text="@string/song_bottom_sheet_share" />
|
|
</LinearLayout>
|
|
</LinearLayout> |