mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-07 21:55:29 +03:00
3c23302b82
* Use standard margins * Some clean up
71 lines
3.0 KiB
XML
71 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.google.android.material.card.MaterialCardView 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/item_click_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:layout_marginBottom="10dp"
|
|
app:cardCornerRadius="16dp"
|
|
app:cardElevation="2dp">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/icon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/icon"
|
|
android:foreground="@drawable/background_gradient"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:src="@drawable/default_icon" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:alpha="242.25"
|
|
android:ellipsize="marquee"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
|
android:textColor="@android:color/white"
|
|
android:textStyle="bold"
|
|
app:layout_constrainedWidth="true"
|
|
app:layout_constraintBottom_toTopOf="@id/text_subtitle"
|
|
app:layout_constraintEnd_toEndOf="@id/icon"
|
|
app:layout_constraintStart_toStartOf="@id/icon"
|
|
tools:text="Title" />
|
|
|
|
<TextView
|
|
android:id="@+id/text_subtitle"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:alpha="242.25"
|
|
android:ellipsize="marquee"
|
|
android:fadingEdge="horizontal"
|
|
android:marqueeRepeatLimit="marquee_forever"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
android:textColor="@android:color/white"
|
|
app:layout_constraintBottom_toBottomOf="@id/icon"
|
|
app:layout_constraintEnd_toEndOf="@id/icon"
|
|
app:layout_constraintStart_toStartOf="@id/icon"
|
|
tools:text="Subtitle" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|