comp_banner_01.xml 3.07 KB
<?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/rlParentItem"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginHorizontal="@dimen/rmrb_dp6"
    android:paddingHorizontal="@dimen/rmrb_dp10">

    <ViewStub
        android:id="@+id/cbSelect"
        android:layout_width="@dimen/rmrb_dp20"
        android:layout_height="@dimen/rmrb_dp20"
        android:layout_centerVertical="true"
        android:layout_marginRight="@dimen/rmrb_dp16"
        android:layout="@layout/comp_checkbox"
        android:visibility="gone" />

    <androidx.appcompat.widget.LinearLayoutCompat
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@+id/cbSelect"
        android:orientation="vertical">

        <RelativeLayout
            android:id="@+id/rlImage"
            android:layout_width="match_parent"
            android:paddingTop="@dimen/rmrb_dp14"
            android:layout_height="wrap_content">

            <com.wd.foundation.wdkit.view.RoundRectImageView
                android:id="@+id/imageView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/shape_comp_image_frame_4"
                android:scaleType="centerCrop"
                android:src="@drawable/rmrb_placeholder_compe_all"
                app:leftBottomRadius="@dimen/rmrb_dp4"
                app:leftTopRadius="@dimen/rmrb_dp4"
                app:rightBottomRadius="@dimen/rmrb_dp4"
                app:rightTopRadius="@dimen/rmrb_dp4" />

            <com.wd.capability.layout.ui.widget.TagStokeWidthTextView
                android:id="@+id/tvTitle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:background="@drawable/shape_gradient_white"
                android:ellipsize="end"
                android:maxLines="2"
                android:minHeight="@dimen/rmrb_dp59"
                android:paddingHorizontal="@dimen/rmrb_dp12"
                android:paddingTop="@dimen/rmrb_dp24"
                android:paddingBottom="@dimen/rmrb_dp10"
                android:textColor="@color/res_color_common_C8_keep"
                android:textSize="@dimen/rmrb_dp18"
                app:stokeWidth="0.8" />
            <View
                android:id="@+id/flImage"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/shape_comp_image_frame_4" />

        </RelativeLayout>

        <include
            layout="@layout/item_base_line_gray"
            android:layout_width="match_parent"
            android:layout_height="@dimen/rmrb_dp0_5"
            android:layout_marginTop="@dimen/rmrb_dp14" />
    </androidx.appcompat.widget.LinearLayoutCompat>
</RelativeLayout>