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

102 lines
3.9 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-09-27 15:36:10 +00:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-07-27 13:07:33 +00:00
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:clickable="true"
android:focusable="true"
android:foreground="?rectSelector"
2019-09-27 15:36:10 +00:00
android:gravity="center_vertical"
android:minHeight="64dp"
2019-09-27 15:36:10 +00:00
android:orientation="horizontal"
2018-07-27 13:07:33 +00:00
tools:ignore="MissingPrefix">
2019-09-27 15:36:10 +00:00
<code.name.monkey.retromusic.views.IconImageView
android:id="@+id/drag_view"
android:layout_width="wrap_content"
2018-07-27 13:07:33 +00:00
android:layout_height="match_parent"
2019-09-27 15:36:10 +00:00
android:layout_gravity="center_vertical|start"
android:visibility="gone"
app:srcCompat="@drawable/ic_drag_vertical_white_24dp"
tools:ignore="ContentDescription"
tools:visibility="visible" />
2018-07-27 13:07:33 +00:00
2019-09-27 15:36:10 +00:00
<FrameLayout
android:id="@+id/image_container"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0"
android:paddingLeft="16dp"
android:paddingEnd="0dp">
2018-07-27 13:07:33 +00:00
2019-09-27 15:36:10 +00:00
<com.google.android.material.card.MaterialCardView
android:id="@+id/image_text_container"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
2019-09-27 15:36:10 +00:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
app:cardCornerRadius="6dp">
2018-07-27 13:07:33 +00:00
2019-09-27 15:36:10 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/image"
android:layout_width="40dp"
android:layout_height="40dp"
2018-07-27 13:07:33 +00:00
android:layout_gravity="center_vertical"
2019-09-27 15:36:10 +00:00
android:gravity="center_vertical"
android:scaleType="centerCrop" />
2018-07-27 13:07:33 +00:00
2019-09-27 15:36:10 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/image_text"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
2019-09-27 15:36:10 +00:00
android:layout_height="match_parent"
android:fontFeatureSettings="onum"
android:gravity="center"
2018-07-27 13:07:33 +00:00
android:maxLines="1"
2019-09-27 15:36:10 +00:00
android:minHeight="40dp"
android:textAppearance="@style/TextViewSubtitle2"
android:visibility="gone"
tools:text="1"
tools:visibility="visible" />
</com.google.android.material.card.MaterialCardView>
</FrameLayout>
2018-07-27 13:07:33 +00:00
2019-09-27 15:36:10 +00:00
<LinearLayout
android:id="@+id/title_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:layout_weight="1.0"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp">
2018-07-27 13:07:33 +00:00
2019-09-27 15:36:10 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextViewSubtitle1"
android:textColor="?colorOnPrimary"
tools:text="Song name" />
2018-07-27 13:07:33 +00:00
2019-09-27 15:36:10 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:ellipsize="end"
android:maxLines="1"
android:textAppearance="@style/TextViewBody2"
android:textColor="?colorOnBackground"
tools:text="Song artist name " />
2018-07-27 13:07:33 +00:00
</LinearLayout>
2019-09-27 15:36:10 +00:00
<code.name.monkey.retromusic.views.IconImageView
android:id="@+id/menu"
style="@style/OverFlowButton"
android:layout_gravity="center_vertical"
android:layout_weight="0" />
</LinearLayout>