RetroMusicPlayer/app/src/main/res/layout/image.xml

36 lines
1.4 KiB
XML
Raw Normal View History

2018-07-27 18:37:33 +05:30
<?xml version="1.0" encoding="utf-8"?>
2018-08-22 23:24:07 +05:30
<code.name.monkey.retromusic.views.WidthFitSquareLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
2019-11-08 22:37:30 +05:30
android:id="@+id/imageContainer"
2019-01-28 16:15:51 +05:30
android:layout_width="match_parent"
2018-07-27 18:37:33 +05:30
android:layout_height="match_parent"
2020-01-06 11:04:09 +05:30
android:foreground="?attr/rectSelector"
2018-08-22 23:24:07 +05:30
android:orientation="vertical">
2019-10-26 19:44:09 +05:30
<androidx.appcompat.widget.AppCompatImageView
2018-08-22 23:24:07 +05:30
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
2018-11-05 19:23:07 +05:30
android:transitionName="@string/transition_album_art"
2019-10-26 19:44:09 +05:30
tools:ignore="ContentDescription"
tools:src="@tools:sample/avatars" />
2018-08-22 23:24:07 +05:30
<View
android:layout_width="match_parent"
android:layout_height="72dp"
2018-08-22 23:24:07 +05:30
android:layout_gravity="bottom"
android:background="@drawable/shadow_up" />
<com.google.android.material.textview.MaterialTextView
2018-08-22 23:24:07 +05:30
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:gravity="center"
android:maxLines="2"
android:padding="12dp"
android:textAppearance="@style/TextViewSubtitle1"
2019-11-08 22:37:30 +05:30
android:textColor="@color/md_white_1000"
tools:text="@tools:sample/full_names" />
2018-07-27 18:37:33 +05:30
</code.name.monkey.retromusic.views.WidthFitSquareLayout>