home_intelligent_top_item_view.xml 5.44 KB
Newer Older
YKai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools">


    <androidx.cardview.widget.CardView
        android:id="@+id/homeModuleIntelligentTopViewImageCardView"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:cardCornerRadius="@dimen/platform_dp_7"
        app:cardElevation="0dp">
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">

            <ImageView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:id="@+id/homeModuleIntelligentTopViewImage"
                android:background="@drawable/home_image_default_back"
                android:scaleType="centerCrop"/>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical">
                <View
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="45"/>
                <View
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="55"
                    android:background="@drawable/home_intelligent_gradient_back"/>
            </LinearLayout>

        </RelativeLayout>
    </androidx.cardview.widget.CardView>


    <TextView
        android:id="@+id/homeModuleIntelligentTopViewTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        tools:text="先结婚还是先买先结婚还是先买房"
        android:textSize="@dimen/platform_dp_24"
        android:textColor="@color/platform_color_FFFFFF"
        android:textStyle="bold"
        android:maxLines="1"
        android:ellipsize="end"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_marginLeft="@dimen/platform_dp_14"
        android:layout_marginBottom="@dimen/platform_dp_35"
        android:layout_marginRight="@dimen/platform_dp_115"
        />

    <LinearLayout
        android:id="@+id/homeModuleIntelligentTopViewDescLayout"
        android:layout_width="wrap_content"
        android:layout_height="@dimen/platform_dp_18"
        android:orientation="horizontal"
        android:gravity="center_vertical"
        android:paddingLeft="@dimen/platform_dp_10"
        android:paddingRight="@dimen/platform_dp_10"
        android:background="@drawable/home_intelligent_top_view_layout_back"
        android:layout_alignLeft="@+id/homeModuleIntelligentTopViewTitle"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="@dimen/platform_dp_14">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="主播/"
            android:textColor="@color/platform_color_222222"
            android:textSize="@dimen/platform_dp_12"
            />
        <TextView
            android:id="@+id/homeModuleIntelligentTopViewAuthor"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            tools:text="花心月"
            android:textColor="@color/platform_color_222222"
            android:textSize="@dimen/platform_dp_12"
            android:layout_marginBottom="0.5dp"
            />
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="收听/"
            android:textColor="@color/platform_color_222222"
            android:textSize="@dimen/platform_dp_12"
            android:layout_marginLeft="@dimen/platform_dp_12"
            />
        <TextView
            android:id="@+id/homeModuleIntelligentTopViewHits"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            tools:text="2486"
            android:textColor="@color/platform_color_222222"
            android:textSize="@dimen/platform_dp_13"
            android:layout_marginBottom="1dp"
            />
    </LinearLayout>

    <ImageView
        android:id="@+id/iv_play_fm"
        android:layout_width="@dimen/platform_dp_36"
        android:layout_height="@dimen/platform_dp_36"
        android:src="@drawable/home_intelligent_first_play_icon"
        android:layout_alignParentRight="true"
        android:layout_alignParentBottom="true"
        android:layout_marginRight="@dimen/platform_dp_14"
        android:layout_marginBottom="16.5dp"/>

    <RelativeLayout
        android:layout_width="@dimen/platform_dp_64"
        android:layout_height="@dimen/platform_dp_20"
        android:layout_alignParentRight="true"
        android:background="@drawable/home_intelligent_top_view_recommend_back">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:text="每日推荐"
            android:textColor="@color/platform_color_242424"
            android:textSize="@dimen/platform_dp_12"
            android:textStyle="bold"/>
    </RelativeLayout>

</RelativeLayout>