ad_test.xml
3.59 KB
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/ad_layout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="8"
android:layout_marginTop="30dp"
android:weightSum="2"
android:orientation="vertical"
android:background="@android:color/white">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="100dp"
android:id="@+id/image">
<ImageView
android:layout_marginLeft="10dp"
android:id="@+id/ad_logo"
android:layout_width="18dp"
android:layout_height="10dp"
android:background="@drawable/ad_logo_2"/>
<ImageView
android:layout_marginLeft="10dp"
android:layout_toRightOf="@id/ad_logo"
android:id="@+id/big_ad_from_logo"
android:layout_width="10dp"
android:layout_height="10dp"
android:background="@drawable/background_circle"/>
<ImageView
android:id="@+id/big_ad_icon"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_centerHorizontal="true" />
<ImageView
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
android:layout_alignParentRight="true"
android:background="@drawable/x" />
</RelativeLayout>
<TextView
android:layout_below="@id/image"
android:id="@+id/big_ad_title"
android:layout_marginTop="20dp"
android:gravity="center_horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text=""/>
<TextView
android:id="@+id/big_ad_subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/big_ad_title"
android:layout_marginTop="10dp"
android:gravity="center_horizontal"
android:text="" />
<ImageView
android:id="@+id/big_ad_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:layout_below="@id/big_ad_subtitle"
android:layout_centerHorizontal="true"
android:layout_gravity="center_horizontal" />
<Button
android:id="@+id/big_btn"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_margin="20dp"
android:layout_alignParentBottom="true"
android:background="@android:color/holo_green_light"
android:text="查看详情" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>