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

79 lines
2.9 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2019-09-28 17:52:49 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2018-07-27 13:07:33 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2019-09-28 17:52:49 +00:00
android:layout_height="@dimen/item_song_height"
2018-07-27 13:07:33 +00:00
android:background="?rectSelector"
android:clickable="true"
android:focusable="true"
android:orientation="horizontal">
<FrameLayout
android:id="@+id/image_container"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0"
2019-01-28 10:45:51 +00:00
android:paddingLeft="16dp"
android:paddingEnd="0dp">
2018-07-27 13:07:33 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-07-27 13:07:33 +00:00
android:id="@+id/image_text"
android:layout_width="36dp"
android:layout_height="match_parent"
android:fontFeatureSettings="onum"
2018-07-27 13:07:33 +00:00
android:gravity="center"
android:maxLines="1"
android:minHeight="40dp"
2019-09-29 08:37:57 +00:00
android:textColor="?colorOnSecondary"
android:textAppearance="@style/TextViewNormal" />
2018-07-27 13:07:33 +00:00
</FrameLayout>
<FrameLayout
android:id="@+id/title_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1.0"
2019-09-28 17:52:49 +00:00
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:orientation="horizontal"
2019-01-28 10:45:51 +00:00
android:paddingStart="6dp"
android:paddingEnd="0dp">
2018-07-27 13:07:33 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-07-27 13:07:33 +00:00
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:maxLines="1"
android:textAppearance="@style/TextViewBody1"
2018-07-27 13:07:33 +00:00
tools:text="Song title" />
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-07-27 13:07:33 +00:00
android:id="@+id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
2019-09-29 08:37:57 +00:00
android:textColor="?colorOnSecondary"
android:fontFeatureSettings="onum"
2018-07-27 13:07:33 +00:00
android:padding="4dp"
tools:text="22:00" />
</LinearLayout>
</FrameLayout>
2019-09-28 17:52:49 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-07-27 13:07:33 +00:00
android:id="@+id/menu"
style="@style/OverFlowButton"
android:layout_margin="0dp"
android:layout_weight="0"
android:rotation="90"
2019-10-10 14:02:24 +00:00
android:layout_gravity="center"
2019-09-29 08:37:57 +00:00
app:tint="?colorOnSecondary"
2018-07-27 13:07:33 +00:00
tools:visibility="visible" />
</LinearLayout>