i_recommend_4_detail.xml 3.82 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                android:orientation="vertical"
                android:focusable="true"
                android:gravity="center"
                android:focusableInTouchMode="true"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content">
    <!--  makeramen:riv_corner_radius_bottom_right="10dip"
                makeramen:riv_corner_radius_bottom_left="10dip"
                makeramen:riv_corner_radius_top_left="10dip"
                makeramen:riv_corner_radius_top_right="10dip"
                makeramen:riv_border_width="1dip"
                makeramen:riv_border_color="#ffffff"-->
    <ImageView
            android:layout_width="@dimen/detail_item_width"
            android:layout_height="@dimen/detail_item_height"
            android:focusable="false"
            android:text="@string/actor"
            android:scaleType="fitXY"
            android:adjustViewBounds="true"
            android:focusableInTouchMode="false"
            tools:background="@drawable/ic_movie_default"
            android:id="@+id/imageView"/>
    <LinearLayout
            android:id="@+id/msg_lyt"
            android:layout_width="@dimen/detail_item_width"
            android:layout_height="wrap_content"
            android:focusable="false"
            android:focusableInTouchMode="false"
            tools:text="@string/actor"
            android:gravity="left"
            android:textSize="24sp"
            android:textColor="@color/general_text_color"
            android:singleLine="true"
            android:ellipsize="end"
            android:background="@color/main_gray"
            android:layout_alignBottom="@+id/imageView"
            android:layout_alignParentLeft="true"
            android:layout_alignParentStart="true">
        <LinearLayout android:layout_width="0dp"
                      android:layout_weight="1"
                      android:layout_height="wrap_content"
                      android:orientation="vertical">
            <TextView
                    android:layout_marginTop="3dp"
                    android:layout_marginBottom="3dp"
                    android:id="@+id/name_tv"
                    android:textSize="@dimen/detail_item_item_text_size"
                    tools:text="@string/actor"
                    style="@style/main_item_text_style"/>
            <TextView
                    android:id="@+id/type_tv"
                    android:textSize="@dimen/detail_item_item_text_size"
                    tools:text="@string/actor"
                    android:visibility="gone"
                    android:layout_marginBottom="3dp"
                    style="@style/main_item_text_style"
            />
            <TextView
                    android:id="@+id/length_tv"
                    android:textSize="@dimen/detail_item_item_text_size"
                    tools:text="@string/actor"
                    android:visibility="gone"
                    android:layout_marginBottom="3dp"
                    style="@style/main_item_text_style"
            />
        </LinearLayout>
        <LinearLayout android:layout_width="wrap_content"
                      android:layout_height="match_parent"
                      android:gravity="right|bottom"
                      android:orientation="vertical">

            <ImageView
                    android:id="@+id/play_iv"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="@drawable/ic_play_normal"
                    android:layout_marginRight="5dp"
                    android:layout_marginBottom="5dp"/>
        </LinearLayout>

    </LinearLayout>
</RelativeLayout>