Newer
Older
MethaneInspection / app / src / main / res / layout / item_inspect_recycleview.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginHorizontal="@dimen/margin_10dp"
    android:layout_marginBottom="@dimen/margin_10dp"
    android:orientation="vertical"
    app:cardCornerRadius="7dp">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white"
        android:padding="@dimen/padding_10dp">

        <TextView
            android:id="@+id/inspectMessageView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginEnd="20dp"
            android:layout_toStartOf="@id/inspectNameView"
            android:text="航小科智巡宝航小科智巡宝航小科智巡宝航小科智巡宝航小科智巡宝航小科智巡宝航小科智巡宝航小科智巡宝航小科智巡宝"
            android:textColor="@color/listMainColor" />

        <TextView
            android:id="@+id/inspectDateView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/inspectMessageView"
            android:layout_marginTop="@dimen/margin_10dp"
            android:layout_toStartOf="@id/inspectNameView"
            android:text="2021年07月09日"
            android:textColor="@color/listAuxiliaryColor" />

        <TextView
            android:id="@+id/inspectNameView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentEnd="true"
            android:layout_centerVertical="true"
            android:text="@string/app_name"
            android:textColor="@color/listSubColor"
            android:textSize="@dimen/titleFontSize" />
    </RelativeLayout>
</androidx.cardview.widget.CardView>