layout_allproduction_item.xml 2.52 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <RelativeLayout
        android:id="@+id/rl_allpro_item"
        android:background="?android:attr/selectableItemBackground"
        android:layout_width="match_parent"
        android:layout_height="96dp">

        <ImageView
            android:id="@+id/ima_allproduction_head"
            android:layout_width="107dp"
            android:layout_height="80dp"
            android:scaleType="centerCrop"
            android:layout_centerVertical="true"
            android:background="@drawable/defult_background_small" />

        <TextView
            android:id="@+id/tv_production_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignTop="@id/ima_allproduction_head"
            android:layout_marginLeft="12dp"
            android:layout_marginTop="5dp"
            android:layout_toRightOf="@id/ima_allproduction_head"
            android:ellipsize="end"
            android:singleLine="true"
            android:text="title"
            android:textColor="@color/color_060606"
            android:textSize="14sp" />

        <TextView
            android:id="@+id/tv_production_content"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/tv_production_title"
            android:layout_marginLeft="12dp"
            android:layout_marginTop="11dp"
            android:layout_toRightOf="@id/ima_allproduction_head"
            android:ellipsize="end"
            android:singleLine="true"
            android:text="title"
            android:textColor="@color/color_999"
            android:textSize="13sp" />

        <ImageView
            android:id="@+id/ima_type_logo"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/tv_production_content"
            android:layout_marginLeft="12dp"
            android:layout_marginTop="13dp"
            android:layout_toRightOf="@id/ima_allproduction_head"
            android:background="@mipmap/production_drama_logo" />
    </RelativeLayout>

    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_marginLeft="117dp"
        android:background="@color/color_e5e5e5" />

</LinearLayout>