-num-new"> 147
            mItemTopicName = (TextView) itemView.findViewById(R.id.item_topic_name);
148
149
        }
150
    }
151
152
}

+ 0 - 1
app/src/main/java/com/electric/chargingpile/fragment/SvVideoShowView.java

@ -308,7 +308,6 @@ public class SvVideoShowView implements View.OnClickListener {
308 308
    }
309 309
310 310
    public void updateView() {
311
//        long targetId = talkRecommendBean.targetId;
312 311
313 312
    }
314 313

+ 0 - 24
app/src/main/java/com/electric/chargingpile/fragment/TalkRecommendFragment.java

@ -116,14 +116,6 @@ public class TalkRecommendFragment extends Fragment implements View.OnClickListe
116 116
        layoutAdapter.setOnRecyclerItemClickListener(new RecyclerItemTypeClickListener() {
117 117
            @Override
118 118
            public void onItemClickListener(int position, int type) {
119
//                position--;
120
//                ArrayList<TalkRecommendBean> talkRecommendBeans = layoutAdapter.getCurrentData();
121
//                String targetId = talkRecommendBeans.get(position).targetId+"";
122
//                String targetType = talkRecommendBeans.get(position).targetType+"";
123
//                Intent intent = new Intent(getActivity(), ZoomingPhotoTextActivity.class);
124
//                intent.putExtra("targetId", targetId);
125
//                intent.putExtra("targetType", targetType);
126
//                startActivity(intent);
127 119
                int pos = position - 1;
128 120
                Intent intent = new Intent(getActivity(), VideoDetaislActivity.class);
129 121
                ArrayList<TalkRecommendBean> talkRecommendBeans = layoutAdapter.getCurrentData();
@ -133,22 +125,6 @@ public class TalkRecommendFragment extends Fragment implements View.OnClickListe
133 125
            }
134 126
        });
135 127
136
//        layoutAdapter.setOnItemClickListener(new LayoutAdapter.OnItemClickListener() {
137
//
138
//            @Override
139
//            public void onItemClick(View view) {
140
//                ArrayList<TalkRecommendBean> talkRecommendBeans = layoutAdapter.getCurrentData();
141
//
142
//                int pos = recyclerView.getChildAdapterPosition(view);
143
//                Toast.makeText(getContext(), talkRecommendBeans.get(pos).toString(), Toast.LENGTH_SHORT).show();
144
//                Intent intent = new Intent(getActivity(), VideoDetaislActivity.class);
145
//                intent.putExtra("list", talkRecommendBeans);
146
//                intent.putExtra("pos", pos);
147
//
148
//                startActivity(intent);
149
//
150
//            }
151
//        });
152 128
153 129
        initScrollListener();
154 130

+ 7 - 0
app/src/main/res/drawable/topic_search_con.xml

@ -0,0 +1,7 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:shape="rectangle">
4
5
    <solid android:color="#e8e8e8" />
6
    <corners android:radius="16dp" />
7
</shape>

+ 118 - 0
app/src/main/res/layout/activity_publishtopic.xml

@ -0,0 +1,118 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent">
5
6
    <ImageView
7
        android:id="@+id/publishtopic_back"
8
        android:layout_width="44dp"
9
        android:layout_height="44dp"
10
        android:background="#000" />
11
12
    <TextView
13
        android:layout_width="wrap_content"
14
        android:layout_height="44dp"
15
        android:layout_centerHorizontal="true"
16
        android:gravity="center_vertical"
17
        android:text="发布"
18
        android:textColor="#222"
19
        android:textSize="18sp" />
20
21
    <TextView
22
        android:id="@+id/publishtopic_publish"
23
        android:layout_width="50dp"
24
        android:layout_height="25dp"
25
        android:layout_alignParentEnd="true"
26
        android:layout_centerHorizontal="true"
27
        android:layout_marginTop="@dimen/ui_10_dip"
28
        android:layout_marginEnd="25dp"
29
        android:background="#02B637"
30
        android:gravity="center"
31
        android:text="发布"
32
        android:textColor="#fff"
33
        android:textSize="16sp" />
34
35
    <View
36
        android:layout_width="match_parent"
37
        android:layout_height="1dp"
38
        android:layout_below="@+id/publishtopic_back"
39
        android:background="#ddd" />
40
41
    <ScrollView
42
        android:layout_width="match_parent"
43
        android:layout_height="wrap_content"
44
        android:layout_below="@+id/publishtopic_back">
45
46
        <LinearLayout
47
            android:layout_width="match_parent"
48
            android:layout_height="wrap_content"
49
            android:orientation="vertical"
50
            android:padding="15dp">
51
52
            <EditText
53
                android:id="@+id/publishtopic_con"
54
                android:layout_width="match_parent"
55
                android:layout_height="wrap_content"
56
                android:background="@null"
57
                android:gravity="top"
58
                android:hint="聊聊你的想法......"
59
                android:minHeight="120dp"
60
                android:textColorHint="#555555"
61
                android:textSize="14sp" />
62
63
            <com.electric.chargingpile.view.MyGridView
64
                android:id="@+id/publishtopic_gv"
65
                android:layout_width="match_parent"
66
                android:layout_height="wrap_content" />
67
        </LinearLayout>
68
    </ScrollView>
69
70
71
    <TextView
72
        android:id="@+id/publishtopic_choose_topic"
73
        android:layout_width="wrap_content"
74
        android:layout_height="30dp"
75
        android:layout_alignParentBottom="true"
76
        android:layout_marginStart="15dp"
77
        android:layout_marginBottom="10dp"
78
        android:background="#EE12E812"
79
        android:gravity="center_vertical"
80
        android:orientation="horizontal"
81
        android:paddingStart="@dimen/ui_10_dip"
82
        android:paddingEnd="@dimen/ui_10_dip"
83
        android:text="# 选择话题"
84
        android:textColor="#555"
85
        android:textSize="14sp" />
86
87
    <TextView
88
        android:id="@+id/publishtopic_choose_preview"
89
        android:layout_width="wrap_content"
90
        android:layout_height="49dp"
91
        android:layout_alignParentEnd="true"
92
        android:layout_alignParentBottom="true"
93
        android:layout_marginStart="11dp"
94
        android:gravity="center_vertical"
95
        android:orientation="horizontal"
96
        android:paddingStart="@dimen/ui_10_dip"
97
        android:paddingEnd="15dp"
98
        android:text="预览"
99
        android:textColor="#b2b2b2"
100
        android:textSize="14sp" />
101
102
    <TextView
103
        android:id="@+id/publishtopic_word_num"
104
        android:layout_width="wrap_content"
105
        android:layout_height="49dp"
106
        android:layout_alignParentBottom="true"
107
        android:layout_toStartOf="@+id/publishtopic_choose_preview"
108
        android:gravity="center_vertical"
109
        android:text="0/500"
110
        android:textSize="14sp" />
111
112
113
    <View
114
        android:layout_width="match_parent"
115
        android:layout_height="1dp"
116
        android:layout_above="@+id/publishtopic_choose_preview"
117
        android:background="#ddd" />
118
</RelativeLayout>

+ 127 - 0
app/src/main/res/layout/activity_topic.xml

@ -0,0 +1,127 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="match_parent"
5
    android:background="#fff">
6
7
    <ImageView
8
        android:id="@+id/topic_back"
9
        android:layout_width="44dp"
10
        android:layout_height="44dp"
11
        android:background="#000" />
12
13
    <TextView
14
        android:layout_width="wrap_content"
15
        android:layout_height="44dp"
16
        android:layout_centerHorizontal="true"
17
        android:gravity="center_vertical"
18
        android:text="发布"
19
        android:textColor="#222"
20
        android:textSize="18sp" />
21
22
    <View
23
        android:layout_width="match_parent"
24
        android:layout_height="1dp"
25
        android:layout_below="@+id/topic_back"
26
        android:background="#ddd" />
27
28
    <View
29
        android:layout_width="match_parent"
30
        android:layout_height="60dp"
31
        android:layout_below="@+id/topic_back" />
32
33
    <RelativeLayout
34
        android:id="@+id/topic_input_ll"
35
        android:layout_width="match_parent"
36
        android:layout_height="30dp"
37
        android:layout_below="@+id/topic_back"
38
        android:layout_margin="15dp"
39
        android:background="@drawable/topic_search_con"
40
        android:orientation="horizontal">
41
42
        <View
43
            android:id="@+id/topic_input_start"
44
            android:layout_width="14dp"
45
            android:layout_height="14dp"
46
            android:layout_centerVertical="true"
47
            android:layout_marginStart="8dp"
48
            android:layout_marginEnd="4dp"
49
            android:background="#b2de" />
50
51
        <View
52
            android:id="@+id/topic_input_end"
53
            android:layout_width="14dp"
54
            android:layout_height="14dp"
55
            android:layout_alignParentEnd="true"
56
            android:layout_centerVertical="true"
57
            android:layout_marginStart="4dp"
58
            android:layout_marginEnd="8dp"
59
            android:background="#b2de" />
60
61
        <EditText
62
            android:id="@+id/topic_con"
63
            android:layout_width="match_parent"
64
            android:layout_height="match_parent"
65
            android:layout_toStartOf="@+id/topic_input_end"
66
            android:layout_toEndOf="@+id/topic_input_start"
67
            android:background="@null"
68
            android:gravity="center_vertical"
69
            android:hint="请输入你感兴趣的话题"
70
            android:textColorHint="#555555"
71
            android:textSize="14sp" />
72
    </RelativeLayout>
73
74
    <View
75
        android:id="@+id/topic_input_below_line"
76
        android:layout_width="match_parent"
77
        android:layout_height="10dp"
78
        android:layout_below="@+id/topic_input_ll"
79
        android:background="#f4f4f4" />
80
81
    <android.support.v7.widget.RecyclerView
82
        android:id="@+id/topic_rv"
83
        android:layout_width="match_parent"
84
        android:layout_height="match_parent"
85
        android:layout_below="@+id/topic_input_below_line" />
86
87
    <TextView
88
        android:id="@+id/topic_not_con"
89
        android:layout_width="match_parent"
90
        android:layout_height="match_parent"
91
        android:layout_below="@+id/topic_input_below_line"
92
        android:gravity="center"
93
        android:text="还没有任何内容哦,快来抢沙发~"
94
        android:textColor="#555"
95
        android:textSize="14sp"
96
        android:visibility="gone" />
97
98
    <LinearLayout
99
        android:id="@+id/topic_retry_ll"
100
        android:layout_width="match_parent"
101
        android:layout_height="match_parent"
102
        android:layout_below="@+id/topic_input_below_line"
103
        android:gravity="center"
104
        android:orientation="vertical"
105
        android:visibility="gone">
106
107
108
        <TextView
109
            android:layout_width="wrap_content"
110
            android:layout_height="wrap_content"
111
            android:layout_marginBottom="20dp"
112
            android:text="网络跑调了,请重试~"
113
            android:textColor="#555"
114
            android:textSize="14sp" />
115
116
        <TextView
117
            android:id="@+id/topic_retry"
118
            android:layout_width="123dp"
119
            android:layout_height="40dp"
120
            android:background="@drawable/bg_write_stroke"
121
            android:gravity="center"
122
            android:text="点击重试"
123
            android:textColor="#555"
124
            android:textSize="14sp" />
125
126
    </LinearLayout>
127
</RelativeLayout>

+ 28 - 0
app/src/main/res/layout/item_topic.xml

@ -0,0 +1,28 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="match_parent"
4
    android:layout_height="60dp"
5
    android:paddingStart="15dp"
6
    android:paddingEnd="15dp">
7
8
    <ImageView
9
        android:id="@+id/item_topic_img"
10
        android:layout_width="50dp"
11
        android:layout_height="43dp"
12
        android:layout_centerVertical="true"
13
        android:background="#000" />
14
15
    <TextView
16
        android:id="@+id/item_topic_name"
17
        android:layout_width="match_parent"
18
        android:layout_height="wrap_content"
19
        android:layout_centerVertical="true"
20
        android:layout_marginStart="10dp"
21
        android:layout_toEndOf="@+id/item_topic_img"
22
        android:ellipsize="end"
23
        android:maxLines="2"
24
        android:text="adadasd"
25
        android:textColor="#444444"
26
        android:textSize="14sp" />
27
28
</RelativeLayout>

+ 17 - 0
app/src/main/res/layout/title_item_topic.xml

@ -0,0 +1,17 @@
1
<?xml version="1.0" encoding="utf-8"?>
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
    android:layout_width="match_parent"
5
    android:layout_height="50dp">
6
7
    <TextView
8
        android:layout_width="wrap_content"
9
        android:layout_height="wrap_content"
10
        android:layout_marginStart="15dp"
11
        android:text="推荐话题"
12
        android:textColor="#444444"
13
        android:textSize="15sp"
14
        app:layout_constraintBottom_toTopOf="parent"
15
        app:layout_constraintStart_toStartOf="parent"
16
        app:layout_constraintTop_toBottomOf="parent" />
17
</android.support.constraint.ConstraintLayout>

cdzApp - Gogs: Go Git Service

充电桩app代码

huyuguo b98aa2e34f 代码修改 6 ans auparavant
..
gradle-wrapper.jar e1cf244fe0 remove Useless dependence 7 ans auparavant
gradle-wrapper.properties b98aa2e34f 代码修改 6 ans auparavant