2020-07-17 18:53:44 +03:00
|
|
|
<?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
|
2020-10-03 13:10:16 +03:00
|
|
|
android:id="@+id/card_app_item_grid"
|
2020-08-08 21:01:21 +03:00
|
|
|
android:layout_width="match_parent"
|
2020-07-17 18:53:44 +03:00
|
|
|
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
|
2020-08-08 21:01:21 +03:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2020-07-17 18:53:44 +03:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/icon"
|
|
|
|
android:layout_width="match_parent"
|
2020-08-08 21:01:21 +03:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:adjustViewBounds="true"
|
2020-07-17 18:53:44 +03:00
|
|
|
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"
|
2020-08-08 21:01:21 +03:00
|
|
|
android:layout_width="0dp"
|
2020-07-17 18:53:44 +03:00
|
|
|
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"
|
2020-08-08 21:01:21 +03:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/icon"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/icon"
|
2020-07-17 18:53:44 +03:00
|
|
|
tools:text="Title" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_subtitle"
|
2020-08-08 21:01:21 +03:00
|
|
|
android:layout_width="0dp"
|
2020-07-17 18:53:44 +03:00
|
|
|
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"
|
2020-08-08 21:01:21 +03:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/icon"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/icon"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/icon"
|
2020-07-17 18:53:44 +03:00
|
|
|
tools:text="Subtitle" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
</FrameLayout>
|