37
|
36
|
import com.zhy.http.okhttp.callback.StringCallback;
|
|
38
|
37
|
|
|
39
|
|
import java.io.Serializable;
|
|
40
|
38
|
import java.util.ArrayList;
|
|
41
|
39
|
import java.util.HashMap;
|
|
42
|
|
import java.util.List;
|
|
43
|
40
|
import java.util.Map;
|
|
44
|
|
|
|
45
|
|
import io.reactivex.Observable;
|
|
46
|
|
import io.reactivex.android.schedulers.AndroidSchedulers;
|
|
47
|
|
import io.reactivex.disposables.Disposable;
|
|
48
|
|
import io.reactivex.functions.Consumer;
|
|
49
|
|
import io.reactivex.functions.Predicate;
|
|
50
|
|
import io.reactivex.schedulers.Schedulers;
|
|
51
|
41
|
import okhttp3.Call;
|
|
52
|
42
|
|
|
53
|
43
|
public class ChatRecommendFragment extends Fragment implements View.OnClickListener {
|
|
54
|
44
|
private static final String TAG = "ChatRecommendFragment";
|
|
55
|
45
|
public static final int CLICK_PUBLISH_BTN = 1010;
|
|
56
|
46
|
private View view;
|
|
57
|
|
private XRefreshView refreshView;
|
|
58
|
|
private ImageView iv_ask;
|
|
|
47
|
private XRefreshView xRefreshView;
|
|
59
|
48
|
private RecyclerView recyclerView;
|
|
|
49
|
private ImageView iv_ask;
|
|
60
|
50
|
private ChatRecommendAdapter chatRecommendAdapter;
|
|
61
|
51
|
private StaggeredGridLayoutManager layoutManager;
|
|
62
|
52
|
private ImageView chat_share_info_remind;
|
|
|
@ -75,8 +65,8 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
75
|
65
|
private void initViews() {
|
|
76
|
66
|
loadingDialog = new LoadingDialog(getContext());
|
|
77
|
67
|
loadingDialog.setCanceledOnTouchOutside(false);
|
|
78
|
|
refreshView = view.findViewById(R.id.chat_x_refresh_view);
|
|
79
|
|
refreshView.setPullLoadEnable(true);
|
|
|
68
|
xRefreshView = view.findViewById(R.id.chat_x_refresh_view);
|
|
|
69
|
xRefreshView.setPullLoadEnable(true);
|
|
80
|
70
|
recyclerView = view.findViewById(R.id.recycler_view_test_rv);
|
|
81
|
71
|
recyclerView.setHasFixedSize(true);
|
|
82
|
72
|
|
|
|
@ -96,13 +86,11 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
96
|
86
|
layoutManager.setGapStrategy(StaggeredGridLayoutManager.GAP_HANDLING_NONE);
|
|
97
|
87
|
recyclerView.setItemAnimator(null);
|
|
98
|
88
|
recyclerView.setLayoutManager(layoutManager);
|
|
99
|
|
recyclerView.addItemDecoration(new ChatRecommendItemDecoration()); // 设置边距
|
|
100
|
|
// 静默加载模式不能设置footerview
|
|
|
89
|
recyclerView.addItemDecoration(new TopicDetailAdapter.ContentViewDecoration()); // 设置边距
|
|
101
|
90
|
recyclerView.setAdapter(chatRecommendAdapter);
|
|
102
|
|
refreshView.setPinnedTime(0);
|
|
103
|
|
// refreshView.setMoveForHorizontal(true);
|
|
|
91
|
xRefreshView.setPinnedTime(0);
|
|
104
|
92
|
|
|
105
|
|
refreshView.setXRefreshViewListener(new XRefreshView.SimpleXRefreshListener() {
|
|
|
93
|
xRefreshView.setXRefreshViewListener(new XRefreshView.SimpleXRefreshListener() {
|
|
106
|
94
|
@Override
|
|
107
|
95
|
public void onRefresh(boolean isPullDown) {
|
|
108
|
96
|
page = 1;
|
|
|
@ -116,9 +104,9 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
116
|
104
|
}
|
|
117
|
105
|
});
|
|
118
|
106
|
|
|
119
|
|
refreshView.startRefresh();
|
|
|
107
|
loadingDialog.show();
|
|
|
108
|
// xRefreshView.startRefresh();
|
|
120
|
109
|
requestHeaderData(); // 该页面数据发起请求起点
|
|
121
|
|
|
|
122
|
110
|
chatRecommendAdapter.setOnRecyclerItemClickListener(new RecyclerItemTypeClickListener() {
|
|
123
|
111
|
@Override
|
|
124
|
112
|
public void onItemClickListener(final int position, int type) {
|
|
|
@ -128,48 +116,50 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
128
|
116
|
}
|
|
129
|
117
|
|
|
130
|
118
|
if (type == 2) {
|
|
131
|
|
}
|
|
132
|
|
final ArrayList<ChatRecommendBean> beans = chatRecommendAdapter.getCurrentData();
|
|
133
|
|
ChatRecommendBean bean = beans.get(position - 1);
|
|
134
|
|
if (bean.targetType == ChatRecommendBean.TARGET_TYPE_IMAGE_TOPIC) {
|
|
135
|
|
Intent intent = new Intent(getActivity(), TopicDetailActivity.class);
|
|
136
|
|
intent.putExtra("topicId", bean.targetId);
|
|
137
|
|
startActivity(intent);
|
|
138
|
|
} else {
|
|
139
|
|
Disposable disposable = Observable
|
|
140
|
|
.fromIterable(beans)
|
|
141
|
|
.filter(new Predicate<ChatRecommendBean>() {
|
|
142
|
|
@Override
|
|
143
|
|
public boolean test(ChatRecommendBean chatRecommendBean) throws Exception {
|
|
144
|
|
return chatRecommendBean.targetType != 25;
|
|
145
|
|
}
|
|
146
|
|
}).toList()
|
|
147
|
|
.subscribeOn(Schedulers.io())
|
|
148
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
149
|
|
.subscribe(new Consumer<List<ChatRecommendBean>>() {
|
|
150
|
|
@Override
|
|
151
|
|
public void accept(List<ChatRecommendBean> list) throws Exception {
|
|
152
|
|
ChatRecommendBean chatRecommendBean = beans.get(position - 1);
|
|
153
|
|
|
|
154
|
|
int index = 0;
|
|
155
|
|
for (int i = 0; i < list.size(); i++) {
|
|
156
|
|
ChatRecommendBean tmp = list.get(i);
|
|
157
|
|
if (tmp.targetType == chatRecommendBean.targetType &&
|
|
158
|
|
tmp.targetId == chatRecommendBean.targetId) {
|
|
159
|
|
index = i;
|
|
160
|
|
break;
|
|
161
|
|
}
|
|
162
|
|
}
|
|
163
|
|
|
|
164
|
|
Intent intent = new Intent(getActivity(), VideoDetaislActivity.class);
|
|
165
|
|
intent.putExtra("list", (Serializable) list);
|
|
166
|
|
intent.putExtra("pos", index);
|
|
167
|
|
startActivity(intent);
|
|
168
|
|
|
|
169
|
|
}
|
|
170
|
|
});
|
|
|
119
|
|
|
171
|
120
|
}
|
|
172
|
121
|
|
|
|
122
|
// final ArrayList<ChatRecommendBean> beans = chatRecommendAdapter.getCurrentData();
|
|
|
123
|
// ChatRecommendBean bean = beans.get(position - 1);
|
|
|
124
|
// if (bean.targetType == ChatRecommendBean.TARGET_TYPE_IMAGE_TOPIC) {
|
|
|
125
|
// Intent intent = new Intent(getActivity(), TopicDetailActivity.class);
|
|
|
126
|
// intent.putExtra("topicId", bean.targetId);
|
|
|
127
|
// startActivity(intent);
|
|
|
128
|
// } else {
|
|
|
129
|
// Disposable disposable = Observable
|
|
|
130
|
// .fromIterable(beans)
|
|
|
131
|
// .filter(new Predicate<ChatRecommendBean>() {
|
|
|
132
|
// @Override
|
|
|
133
|
// public boolean test(ChatRecommendBean chatRecommendBean) throws Exception {
|
|
|
134
|
// return chatRecommendBean.targetType != 25;
|
|
|
135
|
// }
|
|
|
136
|
// }).toList()
|
|
|
137
|
// .subscribeOn(Schedulers.io())
|
|
|
138
|
// .observeOn(AndroidSchedulers.mainThread())
|
|
|
139
|
// .subscribe(new Consumer<List<ChatRecommendBean>>() {
|
|
|
140
|
// @Override
|
|
|
141
|
// public void accept(List<ChatRecommendBean> list) throws Exception {
|
|
|
142
|
// ChatRecommendBean chatRecommendBean = beans.get(position - 1);
|
|
|
143
|
//
|
|
|
144
|
// int index = 0;
|
|
|
145
|
// for (int i = 0; i < list.size(); i++) {
|
|
|
146
|
// ChatRecommendBean tmp = list.get(i);
|
|
|
147
|
// if (tmp.targetType == chatRecommendBean.targetType &&
|
|
|
148
|
// tmp.targetId == chatRecommendBean.targetId) {
|
|
|
149
|
// index = i;
|
|
|
150
|
// break;
|
|
|
151
|
// }
|
|
|
152
|
// }
|
|
|
153
|
//
|
|
|
154
|
// Intent intent = new Intent(getActivity(), VideoDetaislActivity.class);
|
|
|
155
|
// intent.putExtra("list", (Serializable) list);
|
|
|
156
|
// intent.putExtra("pos", index);
|
|
|
157
|
// startActivity(intent);
|
|
|
158
|
//
|
|
|
159
|
// }
|
|
|
160
|
// });
|
|
|
161
|
// }
|
|
|
162
|
|
|
173
|
163
|
// TODO update by huyuguo
|
|
174
|
164
|
Log.d(TAG, "onItemClickListener: position:" + position + ",type:" + type);
|
|
175
|
165
|
|
|
|
@ -253,11 +243,12 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
253
|
243
|
}
|
|
254
|
244
|
|
|
255
|
245
|
public void refreshList() {
|
|
256
|
|
if (view == null)
|
|
257
|
|
return;
|
|
258
|
|
refreshView.startRefresh();
|
|
259
|
|
page = 1;
|
|
260
|
|
requestHeaderData();
|
|
|
246
|
// if (view == null)
|
|
|
247
|
// return;
|
|
|
248
|
// ChatBeanLab.get(getContext()).clear();
|
|
|
249
|
// xRefreshView.startRefresh();
|
|
|
250
|
// page = 1;
|
|
|
251
|
// requestHeaderData();
|
|
261
|
252
|
}
|
|
262
|
253
|
|
|
263
|
254
|
private void requestHeaderData() {
|
|
|
@ -270,10 +261,11 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
270
|
261
|
OkHttpUtils.get().params(map).url(url).build().connTimeOut(6000).readTimeOut(6000).execute(new StringCallback() {
|
|
271
|
262
|
@Override
|
|
272
|
263
|
public void onError(Call call, Exception e) {
|
|
|
264
|
loadingDialog.dismiss();
|
|
273
|
265
|
if (page == 1) {
|
|
274
|
|
refreshView.stopRefresh();
|
|
|
266
|
xRefreshView.stopRefresh();
|
|
275
|
267
|
} else {
|
|
276
|
|
refreshView.stopLoadMore();
|
|
|
268
|
xRefreshView.stopLoadMore();
|
|
277
|
269
|
}
|
|
278
|
270
|
if (getActivity() != null) {
|
|
279
|
271
|
ToastUtil.showToast(getActivity().getApplicationContext(), "加载失败,请重试:" + e.getMessage(), Toast.LENGTH_SHORT);
|
|
|
@ -290,6 +282,7 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
290
|
282
|
chatRecommendAdapter.setHeaderData(topicData);
|
|
291
|
283
|
requestData();
|
|
292
|
284
|
} else {
|
|
|
285
|
loadingDialog.dismiss();
|
|
293
|
286
|
ToastUtil.showToast(getActivity().getApplicationContext(), desc, Toast.LENGTH_SHORT);
|
|
294
|
287
|
}
|
|
295
|
288
|
}
|
|
|
@ -306,22 +299,23 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
306
|
299
|
OkHttpUtils.get().params(map).url(url).build().connTimeOut(6000).readTimeOut(6000).execute(new StringCallback() {
|
|
307
|
300
|
@Override
|
|
308
|
301
|
public void onError(Call call, Exception e) {
|
|
|
302
|
loadingDialog.dismiss();
|
|
309
|
303
|
if (page == 1) {
|
|
310
|
|
refreshView.stopRefresh();
|
|
|
304
|
xRefreshView.stopRefresh();
|
|
311
|
305
|
} else {
|
|
312
|
|
refreshView.stopLoadMore();
|
|
|
306
|
xRefreshView.stopLoadMore();
|
|
313
|
307
|
}
|
|
314
|
308
|
ToastUtil.showToast(getActivity().getApplicationContext(), "加载失败,请重试:" + e.getMessage(), Toast.LENGTH_SHORT);
|
|
315
|
309
|
}
|
|
316
|
310
|
|
|
317
|
311
|
@Override
|
|
318
|
312
|
public void onResponse(String response) {
|
|
|
313
|
loadingDialog.dismiss();
|
|
319
|
314
|
if (page == 1) {
|
|
320
|
|
refreshView.stopRefresh();
|
|
|
315
|
xRefreshView.stopRefresh();
|
|
321
|
316
|
} else {
|
|
322
|
|
refreshView.stopLoadMore();
|
|
|
317
|
xRefreshView.stopLoadMore();
|
|
323
|
318
|
}
|
|
324
|
|
// Log.d(TAG, "onResponse: " + response);
|
|
325
|
319
|
|
|
326
|
320
|
String code = JsonUtils.getKeyResult(response, "code");
|
|
327
|
321
|
String desc = JsonUtils.getKeyResult(response, "desc");
|
|
|
@ -329,19 +323,39 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
329
|
323
|
String data = JsonUtils.getKeyResult(response, "data");
|
|
330
|
324
|
ArrayList<ChatRecommendBean> chatRecommendBeans = (ArrayList<ChatRecommendBean>) JsonUtils.parseToObjectList(data, ChatRecommendBean.class);
|
|
331
|
325
|
if (page == 1) {
|
|
332
|
|
refreshView.setLoadComplete(false);
|
|
|
326
|
xRefreshView.setLoadComplete(false);
|
|
333
|
327
|
chatRecommendAdapter.setData(chatRecommendBeans);
|
|
|
328
|
if (chatRecommendBeans.size() == 0) {
|
|
|
329
|
xRefreshView.setLoadComplete(true);
|
|
|
330
|
chatRecommendAdapter.setFooterData(true);
|
|
|
331
|
} else {
|
|
|
332
|
chatRecommendAdapter.setFooterData(false);
|
|
|
333
|
}
|
|
334
|
334
|
} else {
|
|
335
|
|
chatRecommendAdapter.addData(chatRecommendBeans);
|
|
336
|
|
}
|
|
337
|
|
|
|
338
|
|
if (chatRecommendBeans.size() == 0) {
|
|
339
|
|
refreshView.setLoadComplete(true);
|
|
|
335
|
if (chatRecommendBeans.size() == 0) {
|
|
|
336
|
xRefreshView.setLoadComplete(true);
|
|
|
337
|
chatRecommendAdapter.setFooterData(true);
|
|
|
338
|
} else {
|
|
|
339
|
chatRecommendAdapter.setFooterData(false);
|
|
|
340
|
chatRecommendAdapter.addData(chatRecommendBeans);
|
|
|
341
|
}
|
|
340
|
342
|
}
|
|
341
|
343
|
} else {
|
|
|
344
|
if (page == 1) {
|
|
|
345
|
xRefreshView.stopRefresh();
|
|
|
346
|
} else {
|
|
|
347
|
page--;
|
|
|
348
|
xRefreshView.stopLoadMore();
|
|
|
349
|
}
|
|
342
|
350
|
ToastUtil.showToast(getActivity().getApplicationContext(), desc, Toast.LENGTH_SHORT);
|
|
343
|
351
|
}
|
|
344
|
352
|
}
|
|
345
|
353
|
});
|
|
346
|
354
|
}
|
|
|
355
|
|
|
|
356
|
@Override
|
|
|
357
|
public void onPause() {
|
|
|
358
|
super.onPause();
|
|
|
359
|
ChatBeanLab.get(getContext()).clear();
|
|
|
360
|
}
|
|
347
|
361
|
}
|
|
|
@ -60,11 +60,11 @@
|
|
60
|
60
|
android:id="@+id/title"
|
|
61
|
61
|
android:layout_width="0dp"
|
|
62
|
62
|
android:layout_height="wrap_content"
|
|
63
|
|
android:paddingLeft="10dp"
|
|
64
|
|
android:paddingRight="10dp"
|
|
65
|
|
android:paddingTop="10dp"
|
|
66
|
63
|
android:ellipsize="end"
|
|
67
|
64
|
android:maxLines="3"
|
|
|
65
|
android:paddingLeft="10dp"
|
|
|
66
|
android:paddingTop="10dp"
|
|
|
67
|
android:paddingRight="10dp"
|
|
68
|
68
|
android:textColor="#222222"
|
|
69
|
69
|
android:textSize="15sp"
|
|
70
|
70
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
@ -182,6 +182,7 @@
|
|
182
|
182
|
android:layout_width="0dp"
|
|
183
|
183
|
android:layout_height="wrap_content"
|
|
184
|
184
|
android:ellipsize="end"
|
|
|
185
|
android:gravity="center"
|
|
185
|
186
|
android:maxLines="3"
|
|
186
|
187
|
android:paddingLeft="10dp"
|
|
187
|
188
|
android:paddingRight="10dp"
|
|
|
@ -1,136 +0,0 @@
|
|
1
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
|
xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
4
|
|
android:id="@+id/card_view"
|
|
5
|
|
android:layout_width="match_parent"
|
|
6
|
|
android:layout_height="wrap_content"
|
|
7
|
|
android:layout_marginBottom="10dp"
|
|
8
|
|
android:background="#ffffff"
|
|
9
|
|
android:paddingBottom="5dp">
|
|
10
|
|
|
|
11
|
|
<RelativeLayout
|
|
12
|
|
android:id="@+id/info_bg_icon_bg"
|
|
13
|
|
android:layout_width="wrap_content"
|
|
14
|
|
android:layout_height="wrap_content"
|
|
15
|
|
android:gravity="center">
|
|
16
|
|
|
|
17
|
|
<ImageView
|
|
18
|
|
android:id="@+id/info_bg_icon"
|
|
19
|
|
android:layout_width="wrap_content"
|
|
20
|
|
android:layout_height="wrap_content"
|
|
21
|
|
android:scaleType="fitXY" />
|
|
22
|
|
|
|
23
|
|
<ImageView
|
|
24
|
|
android:id="@+id/info_id_video_icon"
|
|
25
|
|
android:layout_width="wrap_content"
|
|
26
|
|
android:layout_height="wrap_content"
|
|
27
|
|
android:layout_centerInParent="true"
|
|
28
|
|
android:src="@drawable/app_talk_video_icon" />
|
|
29
|
|
|
|
30
|
|
<ImageView
|
|
31
|
|
android:id="@+id/topic_back"
|
|
32
|
|
android:layout_width="match_parent"
|
|
33
|
|
android:layout_height="match_parent"
|
|
34
|
|
android:alpha="0.5"
|
|
35
|
|
android:background="@color/black" />
|
|
36
|
|
|
|
37
|
|
<TextView
|
|
38
|
|
android:id="@+id/topic_title"
|
|
39
|
|
android:layout_width="wrap_content"
|
|
40
|
|
android:layout_height="wrap_content"
|
|
41
|
|
android:layout_centerInParent="true"
|
|
42
|
|
android:textColor="@color/white"
|
|
43
|
|
android:textSize="14sp" />
|
|
44
|
|
</RelativeLayout>
|
|
45
|
|
|
|
46
|
|
<TextView
|
|
47
|
|
android:id="@+id/is_top_view"
|
|
48
|
|
android:layout_width="wrap_content"
|
|
49
|
|
android:layout_height="wrap_content"
|
|
50
|
|
android:layout_alignRight="@+id/info_bg_icon_bg"
|
|
51
|
|
android:layout_marginTop="10dp"
|
|
52
|
|
android:layout_marginRight="10dp"
|
|
53
|
|
android:background="@color/white"
|
|
54
|
|
android:text="置顶"
|
|
55
|
|
android:textColor="@color/color_fb9349"
|
|
56
|
|
android:textSize="14sp" />
|
|
57
|
|
|
|
58
|
|
<TextView
|
|
59
|
|
android:id="@+id/recycler_view_title"
|
|
60
|
|
android:layout_width="wrap_content"
|
|
61
|
|
android:layout_height="wrap_content"
|
|
62
|
|
android:layout_below="@+id/info_bg_icon_bg"
|
|
63
|
|
android:layout_alignLeft="@+id/info_bg_icon_bg"
|
|
64
|
|
android:layout_alignRight="@+id/info_bg_icon_bg"
|
|
65
|
|
android:layout_marginBottom="16dp"
|
|
66
|
|
android:ellipsize="end"
|
|
67
|
|
android:maxLines="3"
|
|
68
|
|
android:paddingLeft="10dp"
|
|
69
|
|
android:paddingTop="11dp"
|
|
70
|
|
android:paddingRight="10dp"
|
|
71
|
|
android:text="123"
|
|
72
|
|
android:textColor="@color/ui_62"
|
|
73
|
|
android:textSize="15sp" />
|
|
74
|
|
|
|
75
|
|
<RelativeLayout
|
|
76
|
|
android:id="@+id/bottom_view"
|
|
77
|
|
android:layout_width="wrap_content"
|
|
78
|
|
android:layout_height="wrap_content"
|
|
79
|
|
android:layout_below="@+id/recycler_view_title"
|
|
80
|
|
android:layout_alignLeft="@+id/info_bg_icon_bg"
|
|
81
|
|
android:layout_alignRight="@+id/info_bg_icon_bg">
|
|
82
|
|
|
|
83
|
|
<LinearLayout
|
|
84
|
|
android:id="@+id/recycler_view_zan_icon_view"
|
|
85
|
|
android:layout_width="wrap_content"
|
|
86
|
|
android:layout_height="wrap_content"
|
|
87
|
|
android:layout_alignParentRight="true"
|
|
88
|
|
android:layout_centerVertical="true"
|
|
89
|
|
android:gravity="center_vertical"
|
|
90
|
|
android:orientation="horizontal">
|
|
91
|
|
|
|
92
|
|
<ImageView
|
|
93
|
|
android:id="@+id/recycler_view_zan_icon"
|
|
94
|
|
android:layout_width="16dp"
|
|
95
|
|
android:layout_height="16dp"
|
|
96
|
|
android:layout_centerVertical="true"
|
|
97
|
|
android:layout_marginRight="5dp"
|
|
98
|
|
android:layout_toLeftOf="@+id/recycler_view_zan"
|
|
99
|
|
android:background="@drawable/app_talk_main_list_zan_icon" />
|
|
100
|
|
|
|
101
|
|
<TextView
|
|
102
|
|
android:id="@+id/recycler_view_zan"
|
|
103
|
|
android:layout_width="wrap_content"
|
|
104
|
|
android:layout_height="wrap_content"
|
|
105
|
|
android:layout_centerVertical="true"
|
|
106
|
|
android:layout_marginRight="10dp"
|
|
107
|
|
android:text="456"
|
|
108
|
|
android:textColor="@color/ui_68"
|
|
109
|
|
android:textSize="13sp" />
|
|
110
|
|
|
|
111
|
|
</LinearLayout>
|
|
112
|
|
|
|
113
|
|
<ImageView
|
|
114
|
|
android:id="@+id/user_avater"
|
|
115
|
|
android:layout_width="20dp"
|
|
116
|
|
android:layout_height="20dp"
|
|
117
|
|
android:layout_centerVertical="true"
|
|
118
|
|
android:layout_marginLeft="10dp" />
|
|
119
|
|
|
|
120
|
|
<TextView
|
|
121
|
|
android:id="@+id/user_avater_name"
|
|
122
|
|
android:layout_width="match_parent"
|
|
123
|
|
android:layout_height="wrap_content"
|
|
124
|
|
android:layout_centerVertical="true"
|
|
125
|
|
android:layout_toLeftOf="@+id/recycler_view_zan_icon_view"
|
|
126
|
|
android:layout_toRightOf="@+id/user_avater"
|
|
127
|
|
android:ellipsize="end"
|
|
128
|
|
android:paddingLeft="5dp"
|
|
129
|
|
android:singleLine="true"
|
|
130
|
|
android:text="456"
|
|
131
|
|
android:textColor="@color/ui_68"
|
|
132
|
|
android:textSize="13sp" />
|
|
133
|
|
|
|
134
|
|
</RelativeLayout>
|
|
135
|
|
|
|
136
|
|
</RelativeLayout>
|