PlayerAndroid/app/src/main/res/layout-xlarge/pager_item.xml

62 lines
2.4 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"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/root_layout"
2018-11-13 03:30:08 +00:00
android:layout_width="match_parent"
2018-07-27 13:07:33 +00:00
android:layout_height="wrap_content"
2020-01-06 05:34:09 +00:00
android:background="?attr/rectSelector"
2018-07-27 13:07:33 +00:00
android:orientation="vertical">
2018-11-05 13:53:07 +00:00
<com.google.android.material.card.MaterialCardView
2018-12-08 03:34:15 +00:00
android:id="@+id/imageContainer"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-11-13 03:30:08 +00:00
android:layout_height="196dp"
2020-02-17 11:20:08 +00:00
android:layout_margin="8dp"
app:cardCornerRadius="16dp">
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-07-27 13:07:33 +00:00
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-01-06 05:34:09 +00:00
android:scaleType="centerCrop"
tools:src="@tools:sample/avatars" />
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.AppCompatImageButton
2018-12-08 03:34:15 +00:00
android:id="@+id/playSongs"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="12dp"
android:background="@drawable/color_circle_gradient"
2018-08-30 09:29:30 +00:00
android:backgroundTint="@color/eighty_percent_black_overlay"
android:padding="8dp"
2019-06-05 08:17:45 +00:00
app:srcCompat="@drawable/ic_play_arrow_white_32dp" />
2018-11-05 13:53:07 +00:00
</com.google.android.material.card.MaterialCardView>
2018-07-27 13:07:33 +00:00
<com.google.android.material.textview.MaterialTextView
2018-07-27 13:07:33 +00:00
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-08-30 09:29:30 +00:00
android:ellipsize="end"
2018-07-27 13:07:33 +00:00
android:maxLines="1"
android:paddingStart="8dp"
2018-11-13 03:30:08 +00:00
android:paddingTop="6dp"
2018-08-30 09:29:30 +00:00
android:paddingEnd="8dp"
2018-11-13 03:30:08 +00:00
android:paddingBottom="4dp"
2018-07-27 13:07:33 +00:00
tools:ignore="MissingPrefix"
tools:text="My top tracks" />
<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="match_parent"
2018-08-30 09:29:30 +00:00
android:ellipsize="end"
android:maxLines="1"
2018-11-13 03:30:08 +00:00
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold"
2018-07-27 13:07:33 +00:00
tools:ignore="MissingPrefix"
tools:text="My top tracks" />
</LinearLayout>