<?xml version="1.0" encoding="utf-8"?>
<com.xuexiang.xui.widget.layout.XUIFrameLayout 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:id="@+id/card_view"
    style="@style/XUILayout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginStart="@dimen/config_margin_5dp"
    android:layout_marginTop="@dimen/config_margin_5dp"
    android:layout_marginEnd="@dimen/config_margin_5dp"
    android:padding="@dimen/config_padding_10dp">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:orientation="horizontal">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <ImageView
                android:id="@+id/iv_rule_image"
                android:layout_width="@dimen/card_view_icon_size"
                android:layout_height="@dimen/card_view_icon_size"
                android:scaleType="fitCenter"
                android:src="@drawable/ic_app"
                tools:ignore="ContentDescription,ImageContrastCheck" />

            <ImageView
                android:id="@+id/iv_rule_status"
                android:layout_width="16dp"
                android:layout_height="16dp"
                android:layout_marginStart="20dp"
                android:layout_marginTop="-16dp"
                android:scaleType="fitCenter"
                android:src="@drawable/ic_stop"
                tools:ignore="ContentDescription" />

        </LinearLayout>

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="vertical">

            <TextView
                android:id="@+id/tv_rule_match"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_marginStart="5dp"
                android:ellipsize="end"
                android:gravity="start"
                android:maxEms="8"
                android:maxLines="3"
                android:textSize="@dimen/text_size_small" />

            <LinearLayout
                android:id="@+id/layout_Senders"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="5dp"
                android:orientation="horizontal" />

        </LinearLayout>

        <ImageView
            android:id="@+id/iv_copy"
            android:layout_width="@dimen/card_view_image_size"
            android:layout_height="@dimen/card_view_image_size"
            android:padding="@dimen/card_view_image_padding"
            android:scaleType="fitCenter"
            android:src="@drawable/ic_copy"
            app:tint="@color/colorStart"
            tools:ignore="ContentDescription,ImageContrastCheck" />

        <ImageView
            android:id="@+id/iv_edit"
            android:layout_width="@dimen/card_view_image_size"
            android:layout_height="@dimen/card_view_image_size"
            android:padding="@dimen/card_view_image_padding"
            android:scaleType="fitCenter"
            android:src="@drawable/ic_edit"
            app:tint="@color/toast_info_color"
            tools:ignore="ContentDescription,PrivateResource,ImageContrastCheck" />

        <ImageView
            android:id="@+id/iv_delete"
            android:layout_width="@dimen/card_view_image_size"
            android:layout_height="@dimen/card_view_image_size"
            android:padding="@dimen/card_view_image_padding"
            android:scaleType="fitCenter"
            android:src="@drawable/ic_delete"
            app:tint="@color/toast_error_color"
            tools:ignore="ContentDescription,PrivateResource" />

    </LinearLayout>

</com.xuexiang.xui.widget.layout.XUIFrameLayout>