mirror of
https://github.com/niushuai233/DevControl.git
synced 2024-10-27 22:43:20 +08:00
49 lines
1.8 KiB
XML
49 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@id/device_item"
|
|
android:layout_width="fill_parent"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_height="100dp"
|
|
>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@id/device_item_cardView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:cardCornerRadius="12dp"
|
|
android:layout_centerInParent="true">
|
|
|
|
<RelativeLayout
|
|
android:id="@id/device_item_cardView_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
>
|
|
|
|
<ImageView
|
|
android:id="@id/device_item_cardView_image"
|
|
android:layout_width="55dp"
|
|
android:layout_height="55dp"
|
|
app:srcCompat="@drawable/ic_home" />
|
|
|
|
<TextView
|
|
android:id="@id/device_item_cardView_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/device_item_cardView_image"
|
|
android:layout_marginTop="10dp"
|
|
android:textSize="12dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_centerVertical="true"
|
|
android:shadowColor="#000000"
|
|
android:shadowDx="0.3"
|
|
android:shadowDy="0.3"
|
|
android:shadowRadius="0.3"
|
|
android:text="TextView" />
|
|
</RelativeLayout>
|
|
|
|
</androidx.cardview.widget.CardView>
|
|
</RelativeLayout>
|