110 lines
3.5 KiB
XML
110 lines
3.5 KiB
XML
<?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">
|
|
<LinearLayout
|
|
android:id="@+id/llTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:background="@color/white"
|
|
>
|
|
<ImageView
|
|
android:id="@+id/iv_native_icon"
|
|
android:layout_weight="0"
|
|
android:layout_width="15dp"
|
|
android:layout_height="15dp"
|
|
android:layout_marginRight="2dp"
|
|
android:layout_marginLeft="2dp"
|
|
/>
|
|
<TextView
|
|
android:id="@+id/tv_native_ad_desc"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:layout_marginStart="5dp"
|
|
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:text=" "
|
|
android:textSize="14sp" />
|
|
|
|
|
|
</LinearLayout>
|
|
<ImageView
|
|
android:id="@+id/iv_native_image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@id/llTitle"
|
|
|
|
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:scaleType="centerCrop" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/tv_source_desc_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:layout_below="@id/iv_native_image"
|
|
android:background="@color/white"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
tools:ignore="UseCompoundDrawables">
|
|
<!-- <ImageView
|
|
android:id="@+id/img_native_dislike"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:background="@drawable/tt_dislike_icon" />-->
|
|
<ImageView
|
|
android:id="@+id/img_native_dislike"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
/>
|
|
<TextView
|
|
|
|
android:layout_weight="0"
|
|
android:layout_marginLeft="2dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textSize="12sp"
|
|
android:text="@string/ad_title"
|
|
/>
|
|
<TextView
|
|
android:id="@+id/tv_native_ad_title"
|
|
android:layout_weight="1"
|
|
android:layout_marginLeft="5dp"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textSize="14sp"
|
|
android:text=" "
|
|
/>
|
|
<Button
|
|
android:id="@+id/btn_native_creative"
|
|
style="@style/buttonCates"
|
|
android:layout_weight="0"
|
|
android:layout_width="90dp"
|
|
android:layout_height="30dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_marginRight="14dp"
|
|
android:layout_marginEnd="14dp"
|
|
|
|
android:textSize="10sp"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout> |