Files
QieKan-3.0/app/src/main/res/layout/item_bg_image.xml
T

36 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="66dp"
android:layout_height="98dp"
android:layout_marginEnd="6dp"
android:orientation="vertical">
<com.google.android.material.card.MaterialCardView
android:id="@+id/cd_image"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<ImageView
android:id="@+id/iv_bg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/bg_image"
android:background="?android:attr/selectableItemBackground"
android:scaleType="fitCenter"
android:src="@drawable/ic_add" />
</com.google.android.material.card.MaterialCardView>
<TextView
android:id="@+id/tv_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:textSize="12sp"
android:textStyle="bold"
android:text="@string/text"
android:singleLine="true"
android:gravity="center" />
</LinearLayout>