layout_act_item.xml
4.94 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
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<!-- 视频播放view -->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/play_preview"
android:layout_width="match_parent"
android:layout_height="203dp"
android:background="@color/white"
android:scaleType="centerCrop"/>
<ImageView
android:id="@+id/itemPlayBtn"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="center"
android:contentDescription="@null"
android:src="@mipmap/player_item_play"/>
</FrameLayout>
<RelativeLayout
android:id="@+id/jump_layout"
android:layout_width="match_parent"
android:layout_height="109dp"
android:background="@color/white">
<!-- 活动组织者头像 -->
<com.cnlive.goldenline.ui.widget.RoundImageView
android:id="@+id/act_group_head"
android:layout_width="39dp"
android:layout_height="39dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="12dp"
android:scaleType="centerCrop"
android:src="@mipmap/square_placeholder"/>
<!-- 活动item title -->
<TextView
android:id="@+id/act_item_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginTop="14dp"
android:layout_toRightOf="@+id/act_group_head"
android:textColor="@color/color_999"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/act_item_title"
android:layout_marginLeft="10dp"
android:layout_toRightOf="@+id/act_group_head"
android:gravity="center_vertical"
android:orientation="horizontal">
<!-- 活动组织者名字 -->
<TextView
android:id="@+id/act_group_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/color_ff6633"
android:textSize="11sp"/>
<View
android:layout_width="3dp"
android:layout_height="3dp"
android:layout_marginLeft="6dp"
android:layout_marginRight="6dp"
android:background="@drawable/radio_point"/>
<!-- 排名 -->
<TextView
android:id="@+id/ranking_num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="当前排名:10"
android:textColor="@color/color_666"
android:textSize="11sp"/>
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/act_group_head"
android:layout_marginLeft="10dp"
android:orientation="horizontal">
<!-- 投票数 -->
<TextView
android:id="@+id/vote_num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="23dp"
android:textColor="@color/color_333"
android:textSize="10sp"/>
<!-- 预约 button -->
<ImageView
android:id="@+id/btn_appointment"
android:layout_width="44dp"
android:layout_height="26dp"
android:layout_alignParentBottom="true"
android:layout_marginBottom="12dp"
android:layout_marginRight="19dp"
android:layout_toLeftOf="@+id/btn_vote"
android:background="@mipmap/index_order_button"/>
<!-- 投票 button -->
<ImageView
android:id="@+id/btn_vote"
android:layout_width="44dp"
android:layout_height="26dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="12dp"
android:layout_marginRight="10dp"
android:background="@mipmap/vote_img"/>
</RelativeLayout>
</RelativeLayout>
<View
android:id="@+id/list_line"
android:layout_width="match_parent"
android:layout_height="10dp"
android:background="@color/color_ededed"/>
</LinearLayout>