mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-09 20:55:30 +03:00
82 lines
3.9 KiB
XML
82 lines
3.9 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<FrameLayout 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="wrap_content">
|
||
|
|
||
|
<androidx.cardview.widget.CardView
|
||
|
android:id="@+id/app_item_grid"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center"
|
||
|
android:layout_margin="@dimen/app_card_margin_half"
|
||
|
android:clickable="true"
|
||
|
android:focusable="true"
|
||
|
android:foreground="?attr/selectableItemBackground"
|
||
|
app:cardCornerRadius="4dp"
|
||
|
app:cardElevation="@dimen/app_card_margin"
|
||
|
app:cardUseCompatPadding="true">
|
||
|
|
||
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||
|
android:layout_width="155dp"
|
||
|
android:layout_height="155dp">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/icon"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_alignParentTop="false"
|
||
|
android:layout_centerHorizontal="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="wrap_content"
|
||
|
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="parent"
|
||
|
app:layout_constraintHorizontal_bias="0"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
tools:text="Title" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/text_subtitle"
|
||
|
android:layout_width="wrap_content"
|
||
|
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_constrainedWidth="true"
|
||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||
|
app:layout_constraintEnd_toEndOf="parent"
|
||
|
app:layout_constraintHorizontal_bias="0"
|
||
|
app:layout_constraintStart_toStartOf="parent"
|
||
|
tools:text="Subtitle" />
|
||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||
|
</androidx.cardview.widget.CardView>
|
||
|
</FrameLayout>
|