77 lines
No EOL
3.1 KiB
XML
Executable file
77 lines
No EOL
3.1 KiB
XML
Executable file
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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="@dimen/item_song_height"
|
|
android:layout_marginStart="2dp"
|
|
android:layout_marginEnd="2dp"
|
|
android:background="?rectSelector"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="horizontal">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/imageContainer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="0"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/imageText"
|
|
android:layout_width="40dp"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center"
|
|
android:maxLines="1"
|
|
android:minHeight="40dp"
|
|
android:textAppearance="@style/TextViewNormal"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
tools:text="@tools:sample/date/hhmm" />
|
|
</FrameLayout>
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:maxLines="1"
|
|
android:textAppearance="@style/TextViewBody1"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/time"
|
|
app:layout_constraintHorizontal_bias="0.5"
|
|
app:layout_constraintStart_toEndOf="@+id/imageContainer"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="@tools:sample/lorem/random" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:padding="8dp"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/menu"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="@tools:sample/date/hhmm" />
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/menu"
|
|
style="@style/OverFlowButton"
|
|
android:layout_gravity="center"
|
|
android:layout_margin="0dp"
|
|
android:layout_weight="0"
|
|
android:rotation="90"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:tint="?attr/colorControlNormal"
|
|
tools:visibility="visible" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |