layout_active_item.xml 1.92 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:fresco="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:background="?android:attr/selectableItemBackground"
    android:layout_height="wrap_content">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="139dp"
        android:layout_marginBottom="5dp"
        android:layout_marginLeft="10dp"
        android:id="@+id/ll_active_item"
        android:layout_marginRight="10dp"
        android:layout_marginTop="5dp"
        android:background="@color/color_f4f4f4"
        android:orientation="vertical">

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="112dp">

            <com.facebook.drawee.view.SimpleDraweeView
                android:id="@+id/active_background"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                fresco:failureImage="@drawable/default_background"
                android:scaleType="fitXY"/>

            <ImageView
                android:id="@+id/ima_isactvie"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentRight="true"
                android:layout_alignParentTop="true"
                android:layout_marginRight="14dp"
                android:gravity="center" />
        </RelativeLayout>

        <TextView
            android:id="@+id/tv_active_title"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginLeft="10dp"
            android:gravity="center_vertical"
            android:text="1111"
            android:textColor="@color/color_333"
            android:textSize="11sp" />
    </LinearLayout>
</LinearLayout>