|
|
@Override
|
|
270
|
|
public void onResponse(String response) {
|
|
271
|
|
findViewById(R.id.no_net_view).setVisibility(View.GONE);
|
|
272
|
|
String rtnCode = JsonUtils.getKeyResult(response, "code");
|
|
273
|
|
if ("1000".equals(rtnCode)) {
|
|
274
|
|
String rtnMsg = JsonUtils.getKeyResult(response, "data");
|
|
275
|
|
HomePageBean qadata = (HomePageBean) JsonUtils.parseToObjectBean(rtnMsg, HomePageBean.class);
|
|
276
|
|
if (!haveLoadHeaderData) {
|
|
277
|
|
haveLoadHeaderData = true;
|
|
278
|
|
initHeaderData(qadata.list);
|
|
279
|
|
|
|
280
|
|
if (null != qadata.list && qadata.list.size() > 0) {
|
|
281
|
|
chargingShareBean.setIcon(qadata.list.get(0).coverImgUrl);
|
|
282
|
|
chargingShareBean.setTitle(qadata.list.get(0).topicName);
|
|
283
|
|
chargingShareBean.setUrl(qadata.list.get(0).shareUrl);
|
|
284
|
|
chargingShareBean.setText(qadata.list.get(0).title);
|
|
285
|
|
}
|
|
286
|
|
}
|
|
287
|
|
if (page == 1) {
|
|
288
|
|
waterFallAdapter.setData(qadata.list);
|
|
289
|
|
|
|
290
|
|
if (null == qadata.list || qadata.list.size() == 0) {
|
|
291
|
|
findViewById(R.id.no_content_view).setVisibility(View.VISIBLE);
|
|
292
|
|
comment_data.setVisibility(View.GONE);
|
|
293
|
|
} else {
|
|
294
|
|
findViewById(R.id.no_content_view).setVisibility(View.GONE);
|
|
295
|
|
comment_data.setVisibility(View.VISIBLE);
|
|
296
|
|
}
|
|
297
|
|
} else
|
|
298
|
|
waterFallAdapter.addData(qadata.list);
|
|
299
|
|
|
|
300
|
|
if (qadata.list == null || qadata.list.size() < 20) {
|
|
301
|
|
if (page == 1) {
|
|
302
|
|
comment_data.setLoadMoreEnabled(false);
|
|
303
|
|
} else {
|
|
304
|
|
loadMoreFooterView.setStatus(LoadMoreFooterView.Status.THE_END);
|
|
305
|
|
comment_data.setNestedScrollingEnabled(false);
|
|
306
|
|
}
|
|
307
|
|
}
|
|
308
|
|
} else if ("02".equals(rtnCode)) {
|
|
309
|
|
ToastUtil.showToast(getApplicationContext(), "已经全部加载完毕", Toast.LENGTH_SHORT);
|
|
310
|
|
}
|
|
311
|
|
}
|
|
312
|
|
});
|
|
313
|
|
}
|
|
314
|
|
|
|
315
|
|
private String contentAll = "";
|
|
316
|
|
|
|
317
|
|
private void initHeaderData(ArrayList<TalkRecommendBean> list) {
|
|
318
|
|
if (null != list && list.size() > 0) {
|
|
319
|
|
textview.setText(list.get(0).topicName);
|
|
320
|
|
topic_title.setText(list.get(0).topicName);
|
|
321
|
|
read_data.setText(list.get(0).visitNums + "");
|
|
322
|
|
join_data.setText(list.get(0).joinNums + "");
|
|
323
|
|
contentAll = list.get(0).title;
|
|
324
|
|
if (!TextUtils.isEmpty(contentAll) && contentAll.length() > 80) {
|
|
325
|
|
topic_content.setText(contentAll.substring(0, 80));
|
|
326
|
|
user_content_more.setVisibility(View.VISIBLE);
|
|
327
|
|
} else {
|
|
328
|
|
topic_content.setText(contentAll);
|
|
329
|
|
}
|
|
330
|
|
if (isDestroyed()) {
|
|
331
|
|
return;
|
|
332
|
|
}
|
|
333
|
|
ImageDisplayUtils.dispalyImg(this, "http://cdz.evcharge.cc/zhannew/uploadfile/" + list.get(0).headImgUrl, user_avater);
|
|
334
|
|
}
|
|
335
|
|
}
|
|
336
|
|
|
|
337
|
|
@Override
|
|
338
|
|
public void onLoadMore() {
|
|
339
|
|
page += 1;
|
|
340
|
|
requestData();
|
|
341
|
|
}
|
|
342
|
|
|
|
343
|
|
private void showSimpleBottomSheetGrid(final ChargingShareBean chargingShareBean) {
|
|
344
|
|
final int TAG_SHARE_WECHAT_FRIEND = 0;
|
|
345
|
|
final int TAG_SHARE_WECHAT_MOMENT = 1;
|
|
346
|
|
final int TAG_SHARE_QQ = 2;
|
|
347
|
|
QMUIBottomSheet.BottomGridSheetBuilder builder = new QMUIBottomSheet.BottomGridSheetBuilder(TopicDetailsActivity.this);
|
|
348
|
|
QMUIBottomSheet build = builder.addItem(R.drawable.icon_share_wechat, "微信", TAG_SHARE_WECHAT_FRIEND, QMUIBottomSheet.BottomGridSheetBuilder.FIRST_LINE)
|
|
349
|
|
.addItem(R.drawable.icon_share_wechatquan, "朋友圈", TAG_SHARE_WECHAT_MOMENT, QMUIBottomSheet.BottomGridSheetBuilder.FIRST_LINE)
|
|
350
|
|
.addItem(R.drawable.icon_share_qq, "QQ", TAG_SHARE_QQ, QMUIBottomSheet.BottomGridSheetBuilder.FIRST_LINE)
|
|
351
|
|
.setOnSheetItemClickListener(new QMUIBottomSheet.BottomGridSheetBuilder.OnSheetItemClickListener() {
|
|
352
|
|
@Override
|
|
353
|
|
public void onClick(QMUIBottomSheet dialog, View itemView) {
|
|
354
|
|
dialog.dismiss();
|
|
355
|
|
int tag = (int) itemView.getTag();
|
|
356
|
|
switch (tag) {
|
|
357
|
|
case TAG_SHARE_WECHAT_FRIEND:
|
|
358
|
|
share(Wechat.NAME, chargingShareBean);
|
|
359
|
|
break;
|
|
360
|
|
case TAG_SHARE_WECHAT_MOMENT:
|
|
361
|
|
share(WechatMoments.NAME, chargingShareBean);
|
|
362
|
|
break;
|
|
363
|
|
case TAG_SHARE_QQ:
|
|
364
|
|
share(QQ.NAME, chargingShareBean);
|
|
365
|
|
break;
|
|
366
|
|
}
|
|
367
|
|
}
|
|
368
|
|
}).build();
|
|
369
|
|
// build.
|
|
370
|
|
build.show();
|
|
371
|
|
}
|
|
372
|
|
|
|
373
|
|
private void share(final String name, ChargingShareBean chargingShareBean) {
|
|
374
|
|
Platform.ShareParams paramsToShare = new Platform.ShareParams();
|
|
375
|
|
paramsToShare.setText(chargingShareBean.getText());
|
|
376
|
|
paramsToShare.setTitle(chargingShareBean.getTitle());
|
|
377
|
|
paramsToShare.setTitleUrl(chargingShareBean.getUrl());
|
|
378
|
|
paramsToShare.setUrl(chargingShareBean.getUrl());
|
|
379
|
|
paramsToShare.setImageUrl(chargingShareBean.getIcon());
|
|
380
|
|
paramsToShare.setShareType(Platform.SHARE_WEBPAGE);
|
|
381
|
|
Platform platform = ShareSDK.getPlatform(name);
|
|
382
|
|
platform.setPlatformActionListener(new PlatformActionListener() {
|
|
383
|
|
@Override
|
|
384
|
|
public void onComplete(Platform platform, int i, HashMap<String, Object> hashMap) {
|
|
385
|
|
if (MainApplication.isLogin()) {
|
|
386
|
|
getShareIntegral();
|
|
387
|
|
}
|
|
388
|
|
}
|
|
389
|
|
|
|
390
|
|
@Override
|
|
391
|
|
public void onError(Platform platform, int i, Throwable throwable) {
|
|
392
|
|
LogUtils.e(throwable.getMessage());
|
|
393
|
|
}
|
|
394
|
|
|
|
395
|
|
@Override
|
|
396
|
|
public void onCancel(Platform platform, int i) {
|
|
397
|
|
}
|
|
398
|
|
});
|
|
399
|
|
platform.share(paramsToShare);
|
|
400
|
|
}
|
|
401
|
|
|
|
402
|
|
private void getShareIntegral() {
|
|
403
|
|
String url = MainApplication.url + "/zhannew/basic/web/index.php/member/insert-task?userid=" + MainApplication.userId;
|
|
404
|
|
OkHttpUtils.get().url(url).build().execute(new StringCallback() {
|
|
405
|
|
@Override
|
|
406
|
|
public void onError(Call call, Exception e) {
|
|
407
|
|
|
|
408
|
|
}
|
|
409
|
|
|
|
410
|
|
@Override
|
|
411
|
|
public void onResponse(String response) {
|
|
412
|
|
String rtnCode = JsonUtils.getKeyResult(response, "rtnCode");
|
|
413
|
|
if (rtnCode.equals("01")) {
|
|
414
|
|
}
|
|
415
|
|
}
|
|
416
|
|
});
|
|
417
|
|
}
|
|
418
|
|
|
|
419
|
|
private void requestShareData() {
|
|
420
|
|
String url = MainApplication.urlNew + "/topic/share.do";
|
|
421
|
|
Map<String, String> map = new HashMap<>();
|
|
422
|
|
map.put("topicId", topicId + "");
|
|
423
|
|
// map.put("targetType", targetType);
|
|
424
|
|
OkHttpUtils.get().params(map).url(url).build().connTimeOut(6000).readTimeOut(6000).execute(new StringCallback() {
|
|
425
|
|
@Override
|
|
426
|
|
public void onError(Call call, Exception e) {
|
|
427
|
|
}
|
|
428
|
|
|
|
429
|
|
@Override
|
|
430
|
|
public void onResponse(String response) {
|
|
431
|
|
|
|
432
|
|
String rtnCode = JsonUtils.getKeyResult(response, "code");
|
|
433
|
|
if ("1000".equals(rtnCode)) {
|
|
434
|
|
String rtnMsg = JsonUtils.getKeyResult(response, "data");
|
|
435
|
|
HomePageBean qadata = (HomePageBean) JsonUtils.parseToObjectBean(rtnMsg, HomePageBean.class);
|
|
436
|
|
}
|
|
437
|
|
}
|
|
438
|
|
});
|
|
439
|
|
}
|
|
440
|
|
}
|
|
|
@ -1,6 +1,7 @@
|
|
1
|
1
|
package com.electric.chargingpile.adapter;
|
|
2
|
2
|
|
|
3
|
3
|
import android.content.Context;
|
|
|
4
|
import android.content.Intent;
|
|
4
|
5
|
import android.support.v7.widget.LinearLayoutManager;
|
|
5
|
6
|
import android.support.v7.widget.RecyclerView;
|
|
6
|
7
|
import android.support.v7.widget.StaggeredGridLayoutManager;
|
|
|
@ -17,6 +18,7 @@ import android.widget.Toast;
|
|
17
|
18
|
|
|
18
|
19
|
import com.aspsine.irecyclerview.IViewHolder;
|
|
19
|
20
|
import com.electric.chargingpile.R;
|
|
|
21
|
import com.electric.chargingpile.activity.TopicDetailActivity;
|
|
20
|
22
|
import com.electric.chargingpile.application.MainApplication;
|
|
21
|
23
|
import com.electric.chargingpile.data.ChatRecommendBean;
|
|
22
|
24
|
import com.electric.chargingpile.iview.RecyclerItemTypeClickListener;
|
|
|
@ -244,15 +246,14 @@ public class ChatRecommendAdapter extends RecyclerView.Adapter<IViewHolder> {
|
|
244
|
246
|
chatHeaderRecommendAdapter.setOnRecyclerItemClickListener(new RecyclerItemTypeClickListener() {
|
|
245
|
247
|
@Override
|
|
246
|
248
|
public void onItemClickListener(int position, int type) {
|
|
247
|
|
String topicId = chatHeaderRecommendBeans.get(position).topicId + "";
|
|
248
|
|
ToastUtil.showToast(context, "position:" + position + ", type:" + type, Toast.LENGTH_SHORT);
|
|
249
|
|
// context.startActivity(new Intent(context,)); // TODO 跳转到顶部话题详情页
|
|
|
249
|
ChatRecommendBean bean = chatHeaderRecommendBeans.get(position);
|
|
|
250
|
Intent intent = new Intent(context, TopicDetailActivity.class);
|
|
|
251
|
intent.putExtra("topicId", bean.topicId);
|
|
|
252
|
context.startActivity(intent);
|
|
250
|
253
|
}
|
|
251
|
254
|
});
|
|
252
|
|
|
|
253
|
255
|
}
|
|
254
|
256
|
|
|
255
|
|
|
|
256
|
257
|
public static interface OnItemClickListener {
|
|
257
|
258
|
void onItemClick(View view);
|
|
258
|
259
|
}
|
|
|
@ -19,7 +19,7 @@ import android.widget.Toast;
|
|
19
|
19
|
|
|
20
|
20
|
import com.aspsine.irecyclerview.IViewHolder;
|
|
21
|
21
|
import com.electric.chargingpile.R;
|
|
22
|
|
import com.electric.chargingpile.activity.TopicDetailsActivity;
|
|
|
22
|
import com.electric.chargingpile.activity.TopicDetailActivity;
|
|
23
|
23
|
import com.electric.chargingpile.application.MainApplication;
|
|
24
|
24
|
import com.electric.chargingpile.data.TalkRecommendBean;
|
|
25
|
25
|
import com.electric.chargingpile.iview.RecyclerItemTypeClickListener;
|
|
|
@ -281,7 +281,7 @@ public class LayoutAdapter extends RecyclerView.Adapter<IViewHolder> {
|
|
281
|
281
|
@Override
|
|
282
|
282
|
public void onItemClickListener(int position, int index) {
|
|
283
|
283
|
String topicId = talkHeaderRecommendBeans.get(position).topicId + "";
|
|
284
|
|
context.startActivity(new Intent(context, TopicDetailsActivity.class).putExtra("topicId", topicId));
|
|
|
284
|
context.startActivity(new Intent(context, TopicDetailActivity.class).putExtra("topicId", topicId));
|
|
285
|
285
|
}
|
|
286
|
286
|
});
|
|
287
|
287
|
}
|
|
|
@ -17,7 +17,7 @@ import com.andview.refreshview.XRefreshView;
|
|
17
|
17
|
import com.electric.chargingpile.R;
|
|
18
|
18
|
import com.electric.chargingpile.activity.LoginActivity;
|
|
19
|
19
|
import com.electric.chargingpile.activity.PublishItemsActivity;
|
|
20
|
|
import com.electric.chargingpile.activity.TopicDetailsActivity;
|
|
|
20
|
import com.electric.chargingpile.activity.TopicDetailActivity;
|
|
21
|
21
|
import com.electric.chargingpile.activity.VideoDetaislActivity;
|
|
22
|
22
|
import com.electric.chargingpile.adapter.ChatRecommendAdapter;
|
|
23
|
23
|
import com.electric.chargingpile.adapter.ChatRecommendItemDecoration;
|
|
|
@ -96,7 +96,7 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
96
|
96
|
layoutManager.setGapStrategy(StaggeredGridLayoutManager.GAP_HANDLING_NONE);
|
|
97
|
97
|
recyclerView.setItemAnimator(null);
|
|
98
|
98
|
recyclerView.setLayoutManager(layoutManager);
|
|
99
|
|
recyclerView.addItemDecoration(new ChatRecommendItemDecoration());
|
|
|
99
|
recyclerView.addItemDecoration(new ChatRecommendItemDecoration()); // 设置边距
|
|
100
|
100
|
// 静默加载模式不能设置footerview
|
|
101
|
101
|
recyclerView.setAdapter(chatRecommendAdapter);
|
|
102
|
102
|
// refreshView.setPinnedTime(1000);
|
|
|
@ -132,7 +132,7 @@ public class ChatRecommendFragment extends Fragment implements View.OnClickListe
|
|
132
|
132
|
final ArrayList<ChatRecommendBean> beans = chatRecommendAdapter.getCurrentData();
|
|
133
|
133
|
ChatRecommendBean bean = beans.get(position - 1);
|
|
134
|
134
|
if (bean.targetType == ChatRecommendBean.TARGET_TYPE_IMAGE_TOPIC) {
|
|
135
|
|
startActivity(new Intent(getActivity(), TopicDetailsActivity.class).putExtra("topicId", bean.topicId + ""));
|
|
|
135
|
startActivity(new Intent(getActivity(), TopicDetailActivity.class).putExtra("topicId", bean.topicId + ""));
|
|
136
|
136
|
} else {
|
|
137
|
137
|
Disposable disposable = Observable
|
|
138
|
138
|
.fromIterable(beans)
|
|
|
@ -23,7 +23,7 @@ import com.bumptech.glide.request.RequestOptions;
|
|
23
|
23
|
import com.electric.chargingpile.R;
|
|
24
|
24
|
import com.electric.chargingpile.activity.LoginActivity;
|
|
25
|
25
|
import com.electric.chargingpile.activity.PersonalPageActivity;
|
|
26
|
|
import com.electric.chargingpile.activity.TopicDetailsActivity;
|
|
|
26
|
import com.electric.chargingpile.activity.TopicDetailActivity;
|
|
27
|
27
|
import com.electric.chargingpile.application.MainApplication;
|
|
28
|
28
|
import com.electric.chargingpile.data.ChargingShareBean;
|
|
29
|
29
|
import com.electric.chargingpile.data.ChatRecommendBean;
|
|
|
@ -500,7 +500,7 @@ public class SvVideoShowView implements View.OnClickListener {
|
|
500
|
500
|
activity.startActivity(intent);
|
|
501
|
501
|
break;
|
|
502
|
502
|
case R.id.sv_show_topic:
|
|
503
|
|
activity.startActivity(new Intent(activity, TopicDetailsActivity.class)
|
|
|
503
|
activity.startActivity(new Intent(activity, TopicDetailActivity.class)
|
|
504
|
504
|
.putExtra("topicId", talkRecommendBean.topicId + ""));
|
|
505
|
505
|
break;
|
|
506
|
506
|
case R.id.sv_show_user_name:
|
|
|
@ -20,7 +20,7 @@ import com.andview.refreshview.XRefreshView.SimpleXRefreshListener;
|
|
20
|
20
|
import com.electric.chargingpile.R;
|
|
21
|
21
|
import com.electric.chargingpile.activity.PersonalPageActivity;
|
|
22
|
22
|
import com.electric.chargingpile.activity.PublishItemsActivity;
|
|
23
|
|
import com.electric.chargingpile.activity.TopicDetailsActivity;
|
|
|
23
|
import com.electric.chargingpile.activity.TopicDetailActivity;
|
|
24
|
24
|
import com.electric.chargingpile.activity.VideoDetaislActivity;
|
|
25
|
25
|
import com.electric.chargingpile.adapter.LayoutAdapter;
|
|
26
|
26
|
import com.electric.chargingpile.application.MainApplication;
|
|
|
@ -163,7 +163,7 @@ public class TalkRecommendFragment extends Fragment implements View.OnClickListe
|
|
163
|
163
|
}
|
|
164
|
164
|
|
|
165
|
165
|
if (talkRecommendBeans.get(pos).targetType == 25) {
|
|
166
|
|
startActivity(new Intent(getActivity(), TopicDetailsActivity.class).putExtra("topicId", talkRecommendBeans.get(pos).topicId + ""));
|
|
|
166
|
startActivity(new Intent(getActivity(), TopicDetailActivity.class).putExtra("topicId", talkRecommendBeans.get(pos).topicId + ""));
|
|
167
|
167
|
} else {
|
|
168
|
168
|
Disposable disposable = Observable
|
|
169
|
169
|
.fromIterable(talkRecommendBeans)
|
|
|
@ -1,147 +1,19 @@
|
|
1
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
|
android:id="@+id/id_drawerlayout"
|
|
|
2
|
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
3
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
4
|
xmlns:tools="http://schemas.android.com/tools"
|
|
4
|
5
|
android:layout_width="match_parent"
|
|
5
|
|
android:layout_height="match_parent">
|
|
|
6
|
android:layout_height="match_parent"
|
|
|
7
|
tools:context=".activity.TopicDetailActivity">
|
|
6
|
8
|
|
|
7
|
|
<RelativeLayout
|
|
8
|
|
android:id="@+id/whole_view"
|
|
9
|
|
android:layout_width="match_parent"
|
|
10
|
|
android:layout_height="match_parent"
|
|
11
|
|
android:orientation="vertical"
|
|
12
|
|
android:scrollbars="none">
|
|
|
9
|
<com.andview.refreshview.XRefreshView
|
|
|
10
|
android:layout_width="0dp"
|
|
|
11
|
android:layout_height="0dp"
|
|
|
12
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
13
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
14
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
15
|
app:layout_constraintTop_toTopOf="parent">
|
|
13
|
16
|
|
|
14
|
|
<com.electric.chargingpile.view.PullToZoomScrollView3
|
|
15
|
|
android:id="@+id/scroll_view"
|
|
16
|
|
android:layout_width="match_parent"
|
|
17
|
|
android:layout_height="wrap_content">
|
|
|
17
|
</com.andview.refreshview.XRefreshView>
|
|
18
|
18
|
|
|
19
|
|
<LinearLayout
|
|
20
|
|
android:layout_width="match_parent"
|
|
21
|
|
android:layout_height="wrap_content"
|
|
22
|
|
android:gravity="center_horizontal"
|
|
23
|
|
android:orientation="vertical">
|
|
24
|
|
|
|
25
|
|
<include layout="@layout/activity_topic_info_top" />
|
|
26
|
|
|
|
27
|
|
<View
|
|
28
|
|
android:id="@+id/make_header_lines"
|
|
29
|
|
android:layout_width="match_parent"
|
|
30
|
|
android:layout_height="49dp"
|
|
31
|
|
android:visibility="gone" />
|
|
32
|
|
|
|
33
|
|
<include layout="@layout/activity_topic_infos_content" />
|
|
34
|
|
</LinearLayout>
|
|
35
|
|
</com.electric.chargingpile.view.PullToZoomScrollView3>
|
|
36
|
|
|
|
37
|
|
|
|
38
|
|
<RelativeLayout
|
|
39
|
|
android:id="@+id/rl_title"
|
|
40
|
|
android:layout_width="fill_parent"
|
|
41
|
|
android:layout_height="44dp"
|
|
42
|
|
android:background="@color/title_background" >
|
|
43
|
|
|
|
44
|
|
<ImageView
|
|
45
|
|
android:id="@+id/iv_back"
|
|
46
|
|
android:layout_width="wrap_content"
|
|
47
|
|
android:layout_height="match_parent"
|
|
48
|
|
android:layout_alignParentLeft="true"
|
|
49
|
|
android:layout_centerVertical="true"
|
|
50
|
|
android:contentDescription="@null"
|
|
51
|
|
android:paddingLeft="15dp"
|
|
52
|
|
android:paddingRight="15dp"
|
|
53
|
|
android:src="@drawable/icon_lvback1119" />
|
|
54
|
|
|
|
55
|
|
<TextView
|
|
56
|
|
android:id="@+id/textview"
|
|
57
|
|
android:layout_width="match_parent"
|
|
58
|
|
android:layout_height="match_parent"
|
|
59
|
|
android:layout_centerInParent="true"
|
|
60
|
|
android:layout_toRightOf="@+id/iv_back"
|
|
61
|
|
android:layout_toLeftOf="@+id/textview_share"
|
|
62
|
|
android:gravity="center"
|
|
63
|
|
android:singleLine="true"
|
|
64
|
|
android:ellipsize="end"
|
|
65
|
|
android:text=""
|
|
66
|
|
android:textColor="#222222"
|
|
67
|
|
android:textSize="16sp" />
|
|
68
|
|
|
|
69
|
|
<TextView
|
|
70
|
|
android:id="@+id/textview_share"
|
|
71
|
|
android:layout_width="wrap_content"
|
|
72
|
|
android:layout_height="match_parent"
|
|
73
|
|
android:layout_alignParentRight="true"
|
|
74
|
|
android:gravity="center"
|
|
75
|
|
android:paddingRight="15dp"
|
|
76
|
|
android:paddingLeft="15dp"
|
|
77
|
|
android:text="分享"
|
|
78
|
|
android:textColor="#222222"
|
|
79
|
|
android:textSize="15sp"/>
|
|
80
|
|
</RelativeLayout>
|
|
81
|
|
|
|
82
|
|
</RelativeLayout>
|
|
83
|
|
|
|
84
|
|
<ImageView
|
|
85
|
|
android:id="@+id/iv_ask"
|
|
86
|
|
android:layout_width="56dp"
|
|
87
|
|
android:layout_height="56dp"
|
|
88
|
|
android:layout_alignParentRight="true"
|
|
89
|
|
android:layout_alignParentBottom="true"
|
|
90
|
|
android:layout_marginRight="15dp"
|
|
91
|
|
android:layout_marginBottom="72dp"
|
|
92
|
|
android:src="@drawable/app_share_talk_icon"/>
|
|
93
|
|
|
|
94
|
|
<RelativeLayout
|
|
95
|
|
android:layout_width="match_parent"
|
|
96
|
|
android:layout_height="match_parent"
|
|
97
|
|
android:background="@color/white"
|
|
98
|
|
android:id="@+id/no_net_view"
|
|
99
|
|
android:visibility="gone">
|
|
100
|
|
|
|
101
|
|
<RelativeLayout
|
|
102
|
|
android:id="@+id/rl_title_nonet"
|
|
103
|
|
android:layout_width="fill_parent"
|
|
104
|
|
android:layout_height="44dp"
|
|
105
|
|
android:background="@color/white"
|
|
106
|
|
android:visibility="visible">
|
|
107
|
|
|
|
108
|
|
<ImageView
|
|
109
|
|
android:id="@+id/iv_back_nonet"
|
|
110
|
|
android:layout_width="wrap_content"
|
|
111
|
|
android:layout_height="match_parent"
|
|
112
|
|
android:layout_alignParentLeft="true"
|
|
113
|
|
android:layout_centerVertical="true"
|
|
114
|
|
android:contentDescription="@null"
|
|
115
|
|
android:paddingLeft="15dp"
|
|
116
|
|
android:paddingRight="15dp"
|
|
117
|
|
android:src="@drawable/icon_lvback1119" />
|
|
118
|
|
|
|
119
|
|
</RelativeLayout>
|
|
120
|
|
|
|
121
|
|
<TextView
|
|
122
|
|
android:id="@+id/banquan"
|
|
123
|
|
android:layout_width="wrap_content"
|
|
124
|
|
android:layout_height="wrap_content"
|
|
125
|
|
android:layout_marginTop="260dp"
|
|
126
|
|
android:text="小主网络跑掉了,请检查网络~"
|
|
127
|
|
android:gravity="center"
|
|
128
|
|
android:layout_centerHorizontal="true"
|
|
129
|
|
android:textSize="14sp"
|
|
130
|
|
android:textColor="#555555" />
|
|
131
|
|
|
|
132
|
|
<TextView
|
|
133
|
|
android:id="@+id/request_refresh"
|
|
134
|
|
android:layout_width="144dp"
|
|
135
|
|
android:layout_height="40dp"
|
|
136
|
|
android:layout_centerHorizontal="true"
|
|
137
|
|
android:layout_marginTop="20dp"
|
|
138
|
|
android:layout_below="@+id/banquan"
|
|
139
|
|
android:text="点击重新尝试"
|
|
140
|
|
android:gravity="center"
|
|
141
|
|
android:textSize="14sp"
|
|
142
|
|
android:textColor="#555555"
|
|
143
|
|
android:background="@drawable/bg_route_line_818181"/>
|
|
144
|
|
|
|
145
|
|
</RelativeLayout>
|
|
146
|
|
|
|
147
|
|
</RelativeLayout>
|
|
|
19
|
</android.support.constraint.ConstraintLayout>
|
|
|
@ -8,6 +8,8 @@ buildscript {
|
|
8
|
8
|
// appKey = 'mnhwhy8jP7Fq2G6b' // 注册时分配的App Key
|
|
9
|
9
|
// }
|
|
10
|
10
|
repositories {
|
|
|
11
|
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
|
|
|
12
|
maven{ url 'https://maven.aliyun.com/repository/google' }
|
|
11
|
13
|
jcenter()
|
|
12
|
14
|
google()
|
|
13
|
15
|
}
|
|
|
@ -22,6 +24,8 @@ buildscript {
|
|
22
|
24
|
}
|
|
23
|
25
|
allprojects {
|
|
24
|
26
|
repositories {
|
|
|
27
|
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/' }
|
|
|
28
|
maven{ url 'https://maven.aliyun.com/repository/google' }
|
|
25
|
29
|
jcenter()
|
|
26
|
30
|
google()
|
|
27
|
31
|
maven { url "https://jitpack.io" }
|