m-new"> 104
        }
105
    }
106
107
    @Override
108
    public int getItemCount() {
109
        return beanLab.beans().size() + 1;
110
    }
111
112
113
    private void bindContentViewHolder(IViewHolder viewHolder, final int position) {
114
        if (beanLab.beans().size() == 0 || position >= beanLab.beans().size()) {
115
            return;
116
        }
117
118
        final ChatRecommendBean bean = beanLab.beans().get(position);
119
        TopicDetailAdapter.ContentViewHolder contentViewHolder = (TopicDetailAdapter.ContentViewHolder) viewHolder;
120
        ConstraintLayout.LayoutParams coverImageParams = (ConstraintLayout.LayoutParams) contentViewHolder.coverImage.getLayoutParams();
121
        coverImageParams.width = itemWidth;
122
123
        if (bean.coverImgW == 0 || bean.coverImgH == 0) {
124
            coverImageParams.height = (int) (itemWidth * 16f / 9f);
125
        } else {
126
            if ((float) bean.coverImgH / bean.coverImgW > 16f / 9f) {
127
                coverImageParams.height = (int) (itemWidth * 16f / 9f);
128
            } else {
129
                coverImageParams.height = (int) ((float) itemWidth * bean.coverImgH / bean.coverImgW);
130
            }
131
        }
132
        contentViewHolder.coverImage.setLayoutParams(coverImageParams);
133
        ImageDisplayUtils.dispalyImg(context, bean.coverImgUrl, contentViewHolder.coverImage);
134
135
        contentViewHolder.videoIcon.setVisibility(bean.targetType == ChatRecommendBean.TARGET_TYPE_VIDEO ? View.VISIBLE : View.GONE);
136
        contentViewHolder.isTop.setVisibility(bean.isTop == 1 ? View.VISIBLE : View.GONE);
137
        contentViewHolder.title.setText(bean.title);
138
        if (TextUtils.isEmpty(bean.headImgUrl)) {
139
            Picasso.with(context)
140
                    .load(R.drawable.icon_face2_0)
141
                    .placeholder(R.drawable.icon_face2_0)
142
                    .error(R.drawable.icon_face2_0)
143
                    .transform(new CircleTransform())
144
                    .into(contentViewHolder.headImage);
145
        } else {
146
            Picasso.with(context)
147
                    .load("http://cdz.evcharge.cc/zhannew/uploadfile/" + bean.headImgUrl)
148
                    .placeholder(R.drawable.icon_face2_0)
149
                    .error(R.drawable.icon_face2_0)
150
                    .transform(new CircleTransform())
151
                    .into(contentViewHolder.headImage);
152
        }
153
154
        contentViewHolder.nickName.setText(bean.nickName);
155
        contentViewHolder.likeInfo.setOnClickListener(new View.OnClickListener() {
156
            @Override
157
            public void onClick(View view) {
158
                if (bean.likeFlg == 0) {
159
                    doLike(position);
160
                }
161
            }
162
        });
163
164
        if (bean.likeFlg == 1) {
165
            contentViewHolder.likeIcon.setBackgroundResource(R.drawable.app_talk_main_list_zan_red_icon);
166
        } else {
167
            contentViewHolder.likeIcon.setBackgroundResource(R.drawable.app_talk_main_list_zan_icon);
168
        }
169
170
        int likeNum = bean.likeNums;
171
        if (likeNum > 0) {
172
            contentViewHolder.likeNum.setVisibility(View.VISIBLE);
173
            contentViewHolder.likeNum.setText(likeNum < 999 ? likeNum + "" : "999+");
174
        } else {
175
            contentViewHolder.likeNum.setVisibility(View.GONE);
176
        }
177
    }
178
179
    private void bindFooterViewHolder(IViewHolder viewHolder, int position) {
180
        TopicDetailAdapter.FooterViewHolder footerViewHolder = (TopicDetailAdapter.FooterViewHolder) viewHolder;
181
        StaggeredGridLayoutManager.LayoutParams layoutParams = (StaggeredGridLayoutManager.LayoutParams) footerViewHolder.footerContainer.getLayoutParams();
182
        layoutParams.setFullSpan(true);
183
184
        footerViewHolder.footerContainer.setVisibility(showFooter ? View.VISIBLE : View.GONE);
185
186
        ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) footerViewHolder.footerView.getLayoutParams();
187
        if (TopicDetailBeanLab.get(context).beans().size() == 0) {
188
            footerViewHolder.footTextView.setText("还没有任何内容哦,快来抢沙发~");
189
            params.height = DensityUtil.dip2px(context, (screenHeight - headerHeight - statusHeight) / 4);
190
            params.bottomMargin = 0;
191
        } else {
192
            footerViewHolder.footTextView.setText("已经全部加载完毕");
193
            params.height = DensityUtil.dip2px(context, 20);
194
            params.bottomMargin = DensityUtil.dip2px(context, 10);
195
        }
196
197
        if (showFooter == false) {
198
            params.height = 0;
199
            params.bottomMargin = DensityUtil.dip2px(context, 10);
200
        }
201
202
        footerViewHolder.footTextView.setLayoutParams(params);
203
    }
204
205
    /**
206
     * 点赞操作
207
     *
208
     * @param position
209
     */
210
    private void doLike(final int position) {
211
        final ChatRecommendBean bean = TopicDetailBeanLab.get(context).beans().get(position);
212
        String url = MainApplication.urlNew + "/topic/like.do";
213
        Map<String, String> map = new HashMap<>();
214
        map.put("targetId", bean.targetId + "");
215
        map.put("targetType", bean.targetType + "");
216
        map.put("flag", "1");
217
        map.put("authorId", bean.addUserId + "");
218
        CommonParams.addCommonParams(map);
219
220
        OkHttpUtils.get().url(url).params(map).build().connTimeOut(6000).readTimeOut(6000).execute(new StringCallback() {
221
            @Override
222
            public void onError(Call call, Exception e) {
223
                ToastUtil.showToast(context, "点赞失败,请重试", Toast.LENGTH_SHORT);
224
            }
225
226
            @Override
227
            public void onResponse(String res) {
228
                String code = JsonUtils.getKeyResult(res, "code");
229
                String desc = JsonUtils.getKeyResult(res, "desc");
230
                if ("1000".equals(code)) {
231
                    bean.likeFlg = 1;
232
                    bean.likeNums += 1;
233
                    notifyItemChanged(position);
234
                } else {
235
                    ToastUtil.showToast(context, desc, Toast.LENGTH_SHORT);
236
                }
237
            }
238
        });
239
    }
240
241
    public void setContentData(ArrayList<ChatRecommendBean> beans) {
242
        beanLab.clear();
243
        beanLab.add(beans);
244
        notifyDataSetChanged();
245
    }
246
247
    public void addContentData(ArrayList<ChatRecommendBean> beans) {
248
        int startSize = beanLab.beans().size();
249
        beanLab.add(beans);
250
        notifyItemRangeChanged(startSize, beans.size());
251
    }
252
253
    public void setFooterData(Boolean showFooter) {
254
        this.showFooter = showFooter;
255
        notifyItemRangeChanged(getItemCount(), 1);
256
    }
257
}

+ 4 - 4
app/src/main/java/com/electric/chargingpile/application/MainApplication.java

@ -73,10 +73,10 @@ public class MainApplication extends MultiDexApplication {
73 73
    public static String firstPoint = "";
74 74
    public static Boolean firstSsyd;
75 75
    public static String password = "";
76
    public static String url = "http://59.110.68.162";// 充电桩测试环境
77
//    public static String url = "http://cdz.evcharge.cc";// 充电桩正式环境
78
    public static String urlNew = "http://123.56.67.7:83/api/0200";// 一电测试环境
79
//    public static String urlNew = "https://api.touchev.com:83/api/0200";// 一电正式环境
76
//    public static String url = "http://59.110.68.162";// 充电桩测试环境
77
    public static String url = "http://cdz.evcharge.cc";// 充电桩正式环境
78
//    public static String urlNew = "http://123.56.67.7:83/api/0200";// 一电测试环境
79
    public static String urlNew = "https://api.touchev.com:83/api/0200";// 一电正式环境
80 80
    public static String pic_url = "http:/s/cdz.evcharge.cc/zhannew/uploadfile/";
81 81
    //	public static String url = "https://cdz.d1ev.com";
82 82
    public static String build_flag = "0";

+ 4 - 4
app/src/main/java/com/electric/chargingpile/data/TopicDetailBeanLab.java

@ -6,15 +6,15 @@ import java.util.ArrayList;
6 6
import java.util.List;
7 7
8 8
public class TopicDetailBeanLab {
9
    private static TopicDetailBeanLab topicDetailBeanLab;
9
    private static TopicDetailBeanLab beanLab;
10 10
    private List<ChatRecommendBean> beans;
11 11
12 12
    public static TopicDetailBeanLab get(Context context) {
13
        if (topicDetailBeanLab == null) {
14
            topicDetailBeanLab = new TopicDetailBeanLab(context);
13
        if (beanLab == null) {
14
            beanLab = new TopicDetailBeanLab(context);
15 15
        }
16 16
17
        return topicDetailBeanLab;
17
        return beanLab;
18 18
    }
19 19
20 20
    private TopicDetailBeanLab(Context context) {

+ 0 - 41
app/src/main/java/com/electric/chargingpile/data/TopicDetailsListBean.java

@ -1,41 +0,0 @@
1
package com.electric.chargingpile.data;
2
3
public class TopicDetailsListBean {
4
//     "targetId": 13,
5
//             "targetType": 24,
6
//             "title": "早上好。    周五啦,再坚持一天就可以迎来美好的周末了。现在照例先奉上虎嗅早报。    昨晚王兴和阿里的口水仗很是精彩了,不过除了怼阿里,王兴在采访中还说了啥?",
7
//             "topicId": 1,
8
//             "topicName": "你的电动车冬天续航有多少公里?你的电动车冬天续航有多少公里?你的",
9
//             "addUserId": 130690,
10
//             "addTime": 1553823519000,
11
//             "imgUrls": [
12
//             "http://cdn-fs.touchev.com/d/file/liaoliao/img/2019/4/
13
//             "http://cdn-fs.touchev.com/d/file/cars/tuji/117/44/100/1/white9.JPG!w480"
14
//             ],
15
//             "coverImgUrl": "http://cdn-fs.touchev.com/d/file/liaoliao/img/2019/4/02/201915541933276282091.jpeg!w480",
16
//             "headImgUrl": "2018/1381545893914photoIOS.png",
17
//             "nickName": "千秋壹胡",
18
//             "likeNums": 0,
19
//             "commentNums": 0,
20
//             "isTop": 1,
21
//             "likeFlg": 0,
22
//             "source": 2,
23
//             "shareUrl": "https://m.d1ev.com/app.html"
24
    public long targetId;
25
    public int targetType;
26
    public String title;
27
    public int topicId;
28
    public String topicName;
29
    public long addUserId;
30
    public String[] imgUrls;
31
    public String coverImgUrl;
32
    public String headImgUrl;
33
    public String nickName;
34
    public int likeNums;
35
    public int commentNums;
36
    public int isTop;
37
    public int likeFlg;
38
    public int source;
39
    public int shareUrl;
40
41
}

+ 13 - 13
app/src/main/java/com/electric/chargingpile/data/HomePageBean.java

@ -2,36 +2,36 @@ package com.electric.chargingpile.data;
2 2
3 3
import java.util.ArrayList;
4 4
5
public class HomePageBean {
5
public class TopicHomePageBean {
6 6
7 7
8 8
    public ArrayList<ChatRecommendBean> list; // 话题下的内容信息集合
9
    public HomePageTopicBean topicVo;
9
    public TopicVo topicVo;
10 10
11
    public class HomePageTopicBean {
12
        public String topicId; // 话题ID
13
        public String name; // 话题名称
14
        public String coverImgUrl; // 话题封面图片
15
        public String desc; // 话题描述
16
        public String joinNums; // 参与该话题的人数
17
        public String visitNums; // 访问量
11
    public class TopicVo {
12
        public String topicId;      // 话题ID
13
        public String name;         // 话题名称
14
        public String coverImgUrl;  // 话题封面图片
15
        public String desc;         // 话题描述
16
        public String joinNums;     // 参与该话题的人数
17
        public String visitNums;    // 访问量
18 18
19 19
        @Override
20 20
        public String toString() {
21
            return "HomePageTopicBean{" +
21
            return "TopicVo{" +
22 22
                    "topicId='" + topicId + '\'' +
23 23
                    ", name='" + name + '\'' +
24 24
                    ", coverImgUrl='" + coverImgUrl + '\'' +
25 25
                    ", desc='" + desc + '\'' +
26
                    ", joinNums=" + joinNums +
27
                    ", visitNums=" + visitNums +
26
                    ", joinNums='" + joinNums + '\'' +
27
                    ", visitNums='" + visitNums + '\'' +
28 28
                    '}';
29 29
        }
30 30
    }
31 31
32 32
    @Override
33 33
    public String toString() {
34
        return "HomePageBean{" +
34
        return "TopicHomePageBean{" +
35 35
                "list=" + list +
36 36
                ", topicVo=" + topicVo +
37 37
                '}';

+ 38 - 0
app/src/main/java/com/electric/chargingpile/data/UserHomePageBean.java

@ -0,0 +1,38 @@
1
package com.electric.chargingpile.data;
2
3
import java.util.ArrayList;
4
5
public class UserHomePageBean {
6
    public ArrayList<ChatRecommendBean> list;
7
    public UserVo userVo;
8
    public String shareUrl;
9
    public class UserVo {
10
        public long userId;
11
        public String nickName;
12
        public String headImgUrl;
13
        public String carName;
14
        public String phone;
15
        public String topicNums;
16
17
        @Override
18
        public String toString() {
19
            return "UserVo{" +
20
                    "userId=" + userId +
21
                    ", nickName='" + nickName + '\'' +
22
                    ", headImgUrl='" + headImgUrl + '\'' +
23
                    ", carName='" + carName + '\'' +
24
                    ", phone='" + phone + '\'' +
25
                    ", topicNums='" + topicNums + '\'' +
26
                    '}';
27
        }
28
    }
29
30
    @Override
31
    public String toString() {
32
        return "UserHomePageBean{" +
33
                "list=" + list +
34
                ", userVo=" + userVo +
35
                ", shareUrl='" + shareUrl + '\'' +
36
                '}';
37
    }
38
}

+ 45 - 0
app/src/main/java/com/electric/chargingpile/data/UserPageBeanLab.java

@ -0,0 +1,45 @@
1
package com.electric.chargingpile.data;
2
3
import android.content.Context;
4
5
import java.util.ArrayList;
6
import java.util.List;
7
8
public class UserPageBeanLab {
9
    private static UserPageBeanLab beanLab;
10
    private List<ChatRecommendBean> beans;
11
12
    public static UserPageBeanLab get(Context context) {
13
        if (beanLab == null) {
14
            beanLab = new UserPageBeanLab(context);
15
        }
16
17
        return beanLab;
18
    }
19
20
    private UserPageBeanLab(Context context) {
21
        beans = new ArrayList<>();
22
    }
23
24
    public List<ChatRecommendBean> beans() {
25
        return beans;
26
    }
27
28
    public ChatRecommendBean bean(int topicId) {
29
        for (ChatRecommendBean bean : beans) {
30
            if (bean.topicId == topicId) {
31
                return bean;
32
            }
33
        }
34
        return null;
35
    }
36
37
    public void clear() {
38
        beans.clear();
39
    }
40
41
42
    public void add(List<ChatRecommendBean> list) {
43
        beans.addAll(list);
44
    }
45
}

BIN
app/src/main/res/drawable-hdpi/user_page_bg.png


BIN
app/src/main/res/drawable-mdpi/user_page_bg.png


BIN
app/src/main/res/drawable-xhdpi/user_page_bg.png


BIN
app/src/main/res/drawable-xxhdpi/user_page_bg.png


BIN
app/src/main/res/drawable-xxxhdpi/user_page_bg.png


+ 5 - 5
app/src/main/res/layout/activity_no_net.xml

@ -2,11 +2,11 @@
2 2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3
    android:layout_width="match_parent"
4 4
    android:layout_height="match_parent"
5
    android:background="@color/white"
6
    android:id="@+id/no_net_view">
5
    android:background="#f4f4f4"
6
    android:id="@+id/noNetView">
7 7

8 8
    <TextView
9
        android:id="@+id/banquan"
9
        android:id="@+id/noNetLabel"
10 10
        android:layout_width="wrap_content"
11 11
        android:layout_height="wrap_content"
12 12
        android:layout_marginTop="130dp"
@ -17,12 +17,12 @@
17 17
        android:textColor="#555555" />
18 18

19 19
    <TextView
20
        android:id="@+id/request_refresh"
20
        android:id="@+id/noNetTry"
21 21
        android:layout_width="144dp"
22 22
        android:layout_height="40dp"
23 23
        android:layout_centerHorizontal="true"
24 24
        android:layout_marginTop="20dp"
25
        android:layout_below="@+id/banquan"
25
        android:layout_below="@+id/noNetLabel"
26 26
        android:text="点击重新尝试"
27 27
        android:gravity="center"
28 28
        android:textSize="14sp"

+ 206 - 3
app/src/main/res/layout/activity_user_page.xml

@ -7,29 +7,232 @@
7 7
    tools:context=".activity.UserPageActivity">
8 8
9 9
    <android.support.constraint.ConstraintLayout
10
        android:id="@+id/topView"
10 11
        android:layout_width="0dp"
11 12
        android:layout_height="174dp"
13
        android:background="#ffffff"
12 14
        app:layout_constraintEnd_toEndOf="parent"
13 15
        app:layout_constraintStart_toStartOf="parent"
14 16
        app:layout_constraintTop_toTopOf="parent">
15 17
16 18
        <ImageView
19
            android:id="@+id/userPageBg"
17 20
            android:layout_width="0dp"
18
            android:layout_height="150dp"
19
            android:background="@drawable/user_page_bg"
21
            android:layout_height="0dp"
22
            android:scaleType="fitXY"
23
            android:src="@drawable/user_page_bg"
24
            app:layout_constraintBottom_toTopOf="@+id/topicNumInfo"
20 25
            app:layout_constraintLeft_toLeftOf="parent"
21 26
            app:layout_constraintRight_toRightOf="parent"
22
            app:layout_constraintTop_toTopOf="parent" />
27
            app:layout_constraintTop_toTopOf="parent"
28
            tools:background="#ff0000" />
23 29
24 30
25 31
        <android.support.constraint.ConstraintLayout
32
            android:id="@+id/navBar"
26 33
            android:layout_width="0dp"
27 34
            android:layout_height="44dp"
28 35
            app:layout_constraintEnd_toEndOf="parent"
29 36
            app:layout_constraintStart_toStartOf="parent"
30 37
            app:layout_constraintTop_toTopOf="parent">
31 38
39
            <ImageView
40
                android:id="@+id/backPress"
41
                android:layout_width="wrap_content"
42
                android:layout_height="match_parent"
43
                android:contentDescription="@null"
44
                android:paddingLeft="15dp"
45
                android:paddingRight="15dp"
46
                android:src="@drawable/app_white_back_icon"
47
                app:layout_constraintBottom_toBottomOf="parent"
48
                app:layout_constraintStart_toStartOf="parent"
49
                app:layout_constraintTop_toTopOf="parent" />
50
51
            <ImageView
52
                android:id="@+id/morePress"
53
                android:layout_width="wrap_content"
54
                android:layout_height="match_parent"
55
                android:contentDescription="@null"
56
                android:paddingLeft="15dp"
57
                android:paddingRight="15dp"
58
                android:src="@drawable/app_header_more_icon"
59
                app:layout_constraintBottom_toBottomOf="parent"
60
                app:layout_constraintEnd_toEndOf="parent"
61
                app:layout_constraintTop_toTopOf="parent" />
62
        </android.support.constraint.ConstraintLayout>
63
64
        <android.support.constraint.ConstraintLayout
65
            android:id="@+id/userInfo"
66
            android:layout_width="0dp"
67
            android:layout_height="64dp"
68
            app:layout_constraintLeft_toLeftOf="parent"
69
            app:layout_constraintRight_toRightOf="parent"
70
            app:layout_constraintTop_toBottomOf="@+id/navBar">
71
72
            <com.electric.chargingpile.view.RoundImageView
73
                android:id="@+id/userHead"
74
                android:layout_width="56dp"
75
                android:layout_height="56dp"
76
                android:layout_gravity="center"
77
                android:layout_marginLeft="16dp"
78
                android:layout_marginTop="4dp"
79
                android:layout_marginBottom="4dp"
80
                android:background="@drawable/icon_user1118"
81
                android:scaleType="fitXY"
82
                app:layout_constraintBottom_toBottomOf="parent"
83
                app:layout_constraintStart_toStartOf="parent"
84
                app:layout_constraintTop_toTopOf="parent"
85
                app:type="circle" />
86
87
            <TextView
88
                android:id="@+id/nickName"
89
                android:layout_width="wrap_content"
90
                android:layout_height="wrap_content"
91
                android:layout_marginLeft="10dp"
92
                android:layout_marginTop="8dp"
93
                android:textColor="#ffffff"
94
                android:textSize="16sp"
95
                app:layout_constraintLeft_toRightOf="@+id/userHead"
96
                app:layout_constraintTop_toTopOf="parent"
97
                tools:text="吉利帝豪车主" />
98
99
            <TextView
100
                android:id="@+id/carName"
101
                android:layout_width="wrap_content"
102
                android:layout_height="wrap_content"
103
                android:layout_marginLeft="10dp"
104
                android:layout_marginTop="2dp"
105
                android:textColor="#ffffff"
106
                android:textSize="12sp"
107
                app:layout_constraintLeft_toRightOf="@+id/userHead"
108
                app:layout_constraintTop_toBottomOf="@+id/nickName"
109
                tools:text="比亚迪 元EV" />
110
111
            <android.support.constraint.ConstraintLayout
112
                android:id="@+id/userEdit"
113
                android:layout_width="90dp"
114
                android:layout_height="match_parent"
115
                android:visibility="gone"
116
                app:layout_constraintBottom_toBottomOf="parent"
117
                app:layout_constraintRight_toRightOf="parent"
118
                app:layout_constraintTop_toTopOf="parent"
119
                tools:visibility="visible">
120
121
                <ImageView
122
                    android:layout_width="wrap_content"
123
                    android:layout_height="wrap_content"
124
                    android:src="@drawable/app_header_edit_icon"
125
                    app:layout_constraintBottom_toBottomOf="parent"
126
                    app:layout_constraintEnd_toEndOf="parent"
127
                    app:layout_constraintStart_toStartOf="parent"
128
                    app:layout_constraintTop_toTopOf="parent" />
129
            </android.support.constraint.ConstraintLayout>
130
131
        </android.support.constraint.ConstraintLayout>
132
133
        <android.support.constraint.ConstraintLayout
134
            android:id="@+id/topicNumInfo"
135
            android:layout_width="0dp"
136
            android:layout_height="44dp"
137
            app:layout_constraintBottom_toBottomOf="parent"
138
            app:layout_constraintLeft_toLeftOf="parent"
139
            app:layout_constraintRight_toRightOf="parent">
140
141
            <android.support.constraint.ConstraintLayout
142
                android:layout_width="wrap_content"
143
                android:layout_height="wrap_content"
144
                app:layout_constraintBottom_toBottomOf="parent"
145
                app:layout_constraintEnd_toEndOf="parent"
146
                app:layout_constraintStart_toStartOf="parent"
147
                app:layout_constraintTop_toTopOf="parent">
148
149
                <TextView
150
                    android:id="@+id/topicNumLabel"
151
                    android:layout_width="wrap_content"
152
                    android:layout_height="wrap_content"
153
                    android:text="帖子"
154
                    android:textColor="#222222"
155
                    android:textSize="16sp"
156
                    app:layout_constraintBottom_toBottomOf="parent"
157
                    app:layout_constraintLeft_toLeftOf="parent"
158
                    app:layout_constraintTop_toTopOf="parent" />
159
160
                <TextView
161
                    android:layout_width="wrap_content"
162
                    android:layout_height="wrap_content"
163
                    android:paddingLeft="5dp"
164
                    android:textColor="#555555"
165
                    android:textSize="14sp"
166
                    app:layout_constraintBottom_toBottomOf="parent"
167
                    app:layout_constraintLeft_toRightOf="@+id/topicNumLabel"
168
                    app:layout_constraintTop_toTopOf="parent"
169
                    tools:text="2345" />
170
            </android.support.constraint.ConstraintLayout>
171
172
            <ImageView
173
                android:layout_width="match_parent"
174
                android:layout_height="1dp"
175
                android:background="#dddddd"
176
                app:layout_constraintBottom_toBottomOf="parent"
177
                app:layout_constraintLeft_toLeftOf="parent"
178
                app:layout_constraintRight_toRightOf="parent" />
32 179
        </android.support.constraint.ConstraintLayout>
33 180
34 181
    </android.support.constraint.ConstraintLayout>
182
183
    <!-- 列表 -->
184
185
    <com.andview.refreshview.XRefreshView
186
        android:id="@+id/xRefreshView"
187
        android:layout_width="0dp"
188
        android:layout_height="0dp"
189
        app:layout_constraintBottom_toBottomOf="parent"
190
        app:layout_constraintLeft_toLeftOf="parent"
191
        app:layout_constraintRight_toRightOf="parent"
192
        app:layout_constraintTop_toBottomOf="@+id/topView">
193
194
        <android.support.v7.widget.RecyclerView
195
            android:id="@+id/recyclerView"
196
            android:layout_width="match_parent"
197
            android:layout_height="match_parent"
198
            android:paddingTop="15dp">
199
200
        </android.support.v7.widget.RecyclerView>
201
    </com.andview.refreshview.XRefreshView>
202
203
    <include
204
        layout="@layout/activity_no_net"
205
        android:layout_width="0dp"
206
        android:layout_height="0dp"
207
        android:visibility="gone"
208
        app:layout_constraintBottom_toBottomOf="parent"
209
        app:layout_constraintLeft_toLeftOf="parent"
210
        app:layout_constraintRight_toRightOf="parent"
211
        app:layout_constraintTop_toBottomOf="@+id/topView" />
212
213
    <android.support.constraint.ConstraintLayout
214
        android:id="@+id/zeroTopicNum"
215
        android:layout_width="0dp"
216
        android:layout_height="0dp"
217
        android:visibility="gone"
218
        app:layout_constraintBottom_toBottomOf="parent"
219
        app:layout_constraintLeft_toLeftOf="parent"
220
        app:layout_constraintRight_toRightOf="parent"
221
        app:layout_constraintTop_toBottomOf="@+id/topView">
222
223
        <TextView
224
            android:layout_width="wrap_content"
225
            android:layout_height="wrap_content"
226
            android:gravity="center"
227
            android:text="快来分享吧\n小主大家都很期待你的精彩内容哦"
228
            android:textColor="#555555"
229
            android:textSize="14sp"
230
            app:layout_constraintBottom_toBottomOf="parent"
231
            app:layout_constraintLeft_toLeftOf="parent"
232
            app:layout_constraintRight_toRightOf="parent"
233
            app:layout_constraintTop_toTopOf="parent"
234
            app:layout_constraintVertical_bias="0.35000002" />
235
236
    </android.support.constraint.ConstraintLayout>
237
35 238
</android.support.constraint.ConstraintLayout>

cdzApp - Gogs: Go Git Service

充电桩app代码

.gitignore 24B

    /build /local.properties