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

91 lines
3.5 KiB
XML
Raw Normal View History

2018-09-09 19:44:46 +00:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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="?rectSelector"
android:clickable="true"
android:focusable="true"
android:minHeight="72dp"
tools:ignore="MissingPrefix">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
2019-09-28 17:52:49 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-09-09 19:44:46 +00:00
android:id="@+id/drag_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="center_vertical|start"
android:padding="8dp"
android:visibility="gone"
2018-09-09 19:44:46 +00:00
app:srcCompat="@drawable/ic_drag_vertical_white_24dp"
2019-09-28 17:52:49 +00:00
app:tint="?colorOnBackground"
2018-09-09 19:44:46 +00:00
tools:ignore="ContentDescription"
tools:visibility="visible" />
<FrameLayout
2019-11-08 17:07:30 +00:00
android:id="@+id/imageContainer"
2018-09-09 19:44:46 +00:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0">
<com.google.android.material.textview.MaterialTextView
2019-11-08 17:07:30 +00:00
android:id="@+id/imageText"
2018-09-09 19:44:46 +00:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:fontFeatureSettings="onum"
2018-09-09 19:44:46 +00:00
android:gravity="center"
android:maxLines="1"
android:minWidth="36dp"
android:minHeight="40dp"
android:textAppearance="@style/TextViewSubtitle1"
2018-09-09 19:44:46 +00:00
android:visibility="gone"
tools:text="1"
tools:visibility="visible" />
</FrameLayout>
<LinearLayout
android:id="@+id/title_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:layout_weight="1.0"
android:orientation="vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp">
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-09-09 19:44:46 +00:00
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextViewHeadline6"
2019-09-28 17:52:49 +00:00
android:textSize="16sp"
tools:text="Song name" />
2018-09-09 19:44:46 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-09-09 19:44:46 +00:00
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
2019-09-28 17:52:49 +00:00
tools:text="Song details" />
2018-09-09 19:44:46 +00:00
</LinearLayout>
2019-09-28 17:52:49 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-09-09 19:44:46 +00:00
android:id="@+id/menu"
style="@style/OverFlowButton"
android:layout_gravity="center_vertical"
2019-09-28 17:52:49 +00:00
android:layout_weight="0"
app:tint="?colorOnBackground" />
2018-09-09 19:44:46 +00:00
</LinearLayout>
</FrameLayout>