dynamic_item_recommend_trend_ad2.xml 6.77 KB
Newer Older
konghaorui 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 135 136 137 138 139 140 141 142 143 144 145 146 147 148
<?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:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/dynamic_white">


    <RelativeLayout
        android:id="@+id/item_recommend_trend_rel"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_alignParentTop="true"
        android:layout_marginTop="18dp">

        <RelativeLayout
            android:id="@+id/item_recommend_trend_user_rel"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <RelativeLayout
                android:id="@+id/item_recommend_trend_user_head_rel"
                android:layout_width="45dp"
                android:layout_height="45dp"
                android:layout_marginLeft="15dp"
                android:layout_marginStart="15dp">

                <ImageView
                    android:id="@+id/item_recommend_trend_user_head_iv"
                    android:layout_width="45dp"
                    android:layout_height="45dp"
                    android:contentDescription="@string/dynamic_header"
                    android:src="@drawable/dynamic_head_place_hold_pic" />

            </RelativeLayout>

            <RelativeLayout
                android:id="@+id/item_recommend_trend_user_name_rel"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentTop="true"
                android:layout_marginLeft="10dp"
                android:layout_marginStart="10dp"
                android:layout_marginTop="3dp"
                android:layout_toEndOf="@id/item_recommend_trend_user_head_rel"
                android:layout_toRightOf="@+id/item_recommend_trend_user_head_rel">

                <TextView
                    android:id="@+id/item_recommend_trend_user_name_tv"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_centerVertical="true"
                    android:textColor="@color/dynamic_text_trend_black"
                    tools:text="小明" />

                <ImageView
                    android:id="@+id/item_recommend_trend_user_gender_iv"
                    android:layout_width="12dp"
                    android:layout_height="12dp"
                    android:layout_centerVertical="true"
                    android:layout_marginLeft="5dp"
                    android:layout_marginStart="5dp"
                    android:layout_toEndOf="@id/item_recommend_trend_user_name_tv"
                    android:layout_toRightOf="@+id/item_recommend_trend_user_name_tv"
                    android:contentDescription="@null"
                    android:scaleType="fitXY"
                    android:src="@drawable/dynamic_male" />
            </RelativeLayout>


            <TextView
                android:id="@+id/item_recommend_trend_time_tv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/item_recommend_trend_user_name_rel"
                android:layout_marginLeft="10dp"
                android:layout_marginStart="10dp"
                android:layout_marginTop="7dp"
                android:layout_toEndOf="@id/item_recommend_trend_user_head_rel"
                android:layout_toRightOf="@+id/item_recommend_trend_user_head_rel"
                android:textColor="@color/dynamic_text_trend_defult"
                android:textSize="12sp"
                tools:text="23分钟前" />

        </RelativeLayout>

        <TextView
            android:id="@+id/item_recommend_trend_title_tv"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@+id/item_recommend_trend_user_rel"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
            android:layout_marginTop="15dp"
            android:textColor="#333333"
            android:textSize="18sp"
            android:textStyle="bold"
            tools:text="标题" />

        <TextView
            android:id="@+id/item_recommend_trend_content_tv"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/item_recommend_trend_title_tv"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
            android:layout_marginTop="15dp"
            android:lineSpacingExtra="3dp"
            android:textColor="@color/dynamic_text_trend_black"
            android:textSize="16sp"
            tools:text="外交部回应“朝鲜正准备第六次核试验”】有报道称,朝鲜正在准备进行第六次核试验,预计此次核试规模将比上一次增加十几倍。对此,外交部回应表示:中方反对朝鲜核试的立场是明确和一贯的。当前半岛形势高度复杂敏感,任何可能加剧半岛局势紧张的举动都是不可取的。希望相关各方都保持冷静克制,负起自己的责任,不要采取进一步相互刺激和加剧局势紧张的行动。" />

        <ImageView
            android:id="@+id/iv_ad_img"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/item_recommend_trend_content_tv"
            android:layout_marginBottom="8dp"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
            android:layout_marginTop="15dp"
            android:adjustViewBounds="true"
            android:contentDescription="@null" />

        <TextView
            android:id="@+id/item_recommend_trend_readed_tv"
            android:layout_width="wrap_content"
            android:layout_height="30dp"
            android:layout_below="@id/iv_ad_img"
            android:layout_centerVertical="true"
            android:layout_marginBottom="10dp"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
            android:gravity="center_vertical"
            android:textColor="@color/dynamic_text_trend_defult"
            tools:text="2345浏览" />


    </RelativeLayout>

    <View
        android:layout_width="match_parent"
        android:layout_height="10dp"
        android:layout_below="@+id/item_recommend_trend_rel"
        android:background="#f3f3f3" />
</RelativeLayout>