activity_search.xml
5.31 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
140
141
142
143
144
145
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/ll_head"
android:layout_width="match_parent"
android:layout_height="44dp"
android:background="#EEEEEE"
android:gravity="center_vertical"
android:orientation="horizontal"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<LinearLayout
android:layout_width="0dp"
android:layout_height="28dp"
android:layout_centerInParent="true"
android:layout_marginLeft="16dp"
android:layout_weight="1"
android:background="@drawable/shape_circle_ffffff"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_marginLeft="12dp"
android:src="@drawable/ico_search" />
<EditText
android:id="@+id/et_search"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="6dp"
android:layout_marginRight="20dp"
android:layout_weight="1"
android:background="#fff"
android:gravity="center_vertical"
android:hint="@string/home_search_hint"
android:imeOptions="actionSearch"
android:inputType="text"
android:maxLength="20"
android:singleLine="true"
android:textColor="#2E2E2E"
android:textColorHint="#ccc"
android:textSize="13sp" />
<ImageView
android:id="@+id/iv_clear"
android:layout_width="12dp"
android:layout_height="12dp"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:src="@drawable/ico_input_delete"
android:visibility="gone" />
</LinearLayout>
<TextView
android:id="@+id/tv_cancel"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:text="取消"
android:textColor="#333"
android:textSize="15sp" />
</LinearLayout>
<com.chudiangameplay.android.ui.view.MultiStateView
android:id="@+id/multiplestatusView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/ll_head"
app:msv_emptyView="@layout/view_public_empty"
app:msv_errorView="@layout/view_public_error_view"
app:msv_loadingView="@layout/view_public_loading_view">
<com.jwenfeng.library.pulltorefresh.PullToRefreshLayout
android:id="@+id/pulltorefreshlayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerview"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.jwenfeng.library.pulltorefresh.PullToRefreshLayout>
</com.chudiangameplay.android.ui.view.MultiStateView>
<!--搜索历史-->
<LinearLayout
android:id="@+id/ll_history"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/ll_head"
android:background="#fff"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingLeft="16dp"
android:paddingRight="16dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="搜索历史"
android:textColor="#333"
android:textSize="12sp"
/>
<ImageView
android:id="@+id/iv_clearhistory"
android:layout_width="25dp"
android:layout_height="35dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:paddingLeft="10dp"
android:src="@drawable/ico_home_search_delete" />
</LinearLayout>
<include layout="@layout/view_public_line"></include>
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerview_history"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
</RelativeLayout>