|
|
@ -27,7 +33,7 @@ public class VideoPubilshDialog extends Dialog implements View.OnClickListener {
|
|
27
|
33
|
private TextView videoPublishTopicCon;
|
|
28
|
34
|
private LinearLayout videoPublishUserLl;
|
|
29
|
35
|
private ImageView videoPublishUserAvatar;
|
|
30
|
|
private TextView videoPublishUserName;
|
|
|
36
|
private TextView videoPublishUserName,videoPublishCon;
|
|
31
|
37
|
|
|
32
|
38
|
@Override
|
|
33
|
39
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
@ -37,12 +43,37 @@ public class VideoPubilshDialog extends Dialog implements View.OnClickListener {
|
|
37
|
43
|
videoPublishClose = inflate.findViewById(R.id.video_publish_close);
|
|
38
|
44
|
videoPublishTopic = inflate.findViewById(R.id.video_publish_topic);
|
|
39
|
45
|
videoPublishTopicCon = inflate.findViewById(R.id.video_publish_topic_con);
|
|
|
46
|
videoPublishCon = inflate.findViewById(R.id.video_publish_con);
|
|
40
|
47
|
videoPublishUserLl = inflate.findViewById(R.id.video_publish_user_ll);
|
|
41
|
48
|
videoPublishUserAvatar = inflate.findViewById(R.id.video_publish_user_avatar);
|
|
42
|
49
|
videoPublishUserName = inflate.findViewById(R.id.video_publish_user_name);
|
|
43
|
50
|
|
|
44
|
51
|
videoPublishClose.setOnClickListener(this);
|
|
45
|
52
|
|
|
|
53
|
|
|
|
54
|
videoPublishTopicCon.setText(talkRecommendBean.title);
|
|
|
55
|
videoPublishCon.setText(talkRecommendBean.title);
|
|
|
56
|
|
|
|
57
|
if (TextUtils.isEmpty(talkRecommendBean.headImgUrl)) {
|
|
|
58
|
Picasso.with(context)
|
|
|
59
|
.load(R.drawable.icon_face2_0)
|
|
|
60
|
.placeholder(R.drawable.icon_face2_0)
|
|
|
61
|
.error(R.drawable.icon_face2_0)
|
|
|
62
|
.transform(new CircleTransform())
|
|
|
63
|
.into(videoPublishUserAvatar);
|
|
|
64
|
} else {
|
|
|
65
|
Picasso.with(context)
|
|
|
66
|
.load(talkRecommendBean.headImgUrl)
|
|
|
67
|
.placeholder(R.drawable.icon_face2_0)
|
|
|
68
|
.error(R.drawable.icon_face2_0)
|
|
|
69
|
.transform(new CircleTransform())
|
|
|
70
|
.into(videoPublishUserAvatar);
|
|
|
71
|
}
|
|
|
72
|
|
|
|
73
|
videoPublishUserName.setText(talkRecommendBean.nickName);
|
|
|
74
|
// sv_show_user_time.setText("" + talkRecommendBean.addTime);
|
|
|
75
|
|
|
|
76
|
|
|
46
|
77
|
setContentView(inflate);
|
|
47
|
78
|
|
|
48
|
79
|
|
|
|
@ -63,4 +94,12 @@ public class VideoPubilshDialog extends Dialog implements View.OnClickListener {
|
|
63
|
94
|
break;
|
|
64
|
95
|
}
|
|
65
|
96
|
}
|
|
|
97
|
|
|
|
98
|
@Override
|
|
|
99
|
public void show() {
|
|
|
100
|
if(talkRecommendBean==null){
|
|
|
101
|
return;
|
|
|
102
|
}
|
|
|
103
|
super.show();
|
|
|
104
|
}
|
|
66
|
105
|
}
|
|
|
@ -2,7 +2,7 @@
|
|
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="#424242">
|
|
|
5
|
android:background="#9FF33C">
|
|
6
|
6
|
|
|
7
|
7
|
|
|
8
|
8
|
<com.electric.chargingpile.view.sview.VerticalViewPager
|
|
|
@ -12,7 +12,7 @@
|
|
12
|
12
|
android:layout_alignParentEnd="true"
|
|
13
|
13
|
android:layout_marginTop="14dp"
|
|
14
|
14
|
android:layout_marginEnd="14dp"
|
|
15
|
|
android:background="#fff" />
|
|
|
15
|
android:background="@drawable/icon_dialog_close" />
|
|
16
|
16
|
|
|
17
|
17
|
|
|
18
|
18
|
<LinearLayout
|
|
|
@ -56,8 +56,7 @@
|
|
56
|
56
|
<ImageView
|
|
57
|
57
|
android:id="@+id/video_publish_user_avatar"
|
|
58
|
58
|
android:layout_width="20dp"
|
|
59
|
|
android:layout_height="20dp"
|
|
60
|
|
android:background="#3df" />
|
|
|
59
|
android:layout_height="20dp" />
|
|
61
|
60
|
|
|
62
|
61
|
<TextView
|
|
63
|
62
|
android:id="@+id/video_publish_user_name"
|
|
|
@ -70,6 +69,7 @@
|
|
70
|
69
|
</LinearLayout>
|
|
71
|
70
|
|
|
72
|
71
|
<TextView
|
|
|
72
|
android:id="@+id/video_publish_con"
|
|
73
|
73
|
android:layout_width="match_parent"
|
|
74
|
74
|
android:layout_height="wrap_content"
|
|
75
|
75
|
android:layout_below="@+id/video_publish_user_ll"
|
|
|
@ -49,7 +49,6 @@
|
|
49
|
49
|
android:id="@+id/sv_show_comment_count_tv"
|
|
50
|
50
|
android:layout_width="wrap_content"
|
|
51
|
51
|
android:layout_height="wrap_content"
|
|
52
|
|
android:text="1230w"
|
|
53
|
52
|
android:textSize="12sp" />
|
|
54
|
53
|
|
|
55
|
54
|
</LinearLayout>
|
|
|
@ -74,7 +73,6 @@
|
|
74
|
73
|
android:id="@+id/sv_show_like_tv"
|
|
75
|
74
|
android:layout_width="wrap_content"
|
|
76
|
75
|
android:layout_height="wrap_content"
|
|
77
|
|
android:text="12我30w"
|
|
78
|
76
|
android:textSize="12sp" />
|
|
79
|
77
|
|
|
80
|
78
|
</LinearLayout>
|
|
|
@ -121,8 +119,7 @@
|
|
121
|
119
|
android:layout_marginBottom="23dp"
|
|
122
|
120
|
android:ellipsize="end"
|
|
123
|
121
|
android:maxLines="3"
|
|
124
|
|
android:text="3-超出三行的,点击文字,上滑弹窗,显示出所有文字内容,根据内容自适应高度,最高为一半屏幕高度,字数超高,以滚动条滑动显示。3-超出三行的,点击文字,上滑弹窗,显示出所有文字内容,根据内容自适应高度,最高为一半屏幕高度,字数超高,以滚动条滑动显示。"
|
|
125
|
|
android:textSize="14sp" />
|
|
|
122
|
android:textSize="14sp" />
|
|
126
|
123
|
|
|
127
|
124
|
<View
|
|
128
|
125
|
android:id="@+id/sv_show_tvcon_more"
|
|
|
@ -131,7 +128,8 @@
|
|
131
|
128
|
android:layout_above="@+id/sv_show_bottom"
|
|
132
|
129
|
android:layout_alignParentEnd="true"
|
|
133
|
130
|
android:layout_marginBottom="28dp"
|
|
134
|
|
android:background="@color/__picker_black_40" />
|
|
|
131
|
android:rotation="90"
|
|
|
132
|
android:background="@drawable/ssdk_country_back_arrow" />
|
|
135
|
133
|
|
|
136
|
134
|
<RelativeLayout
|
|
137
|
135
|
android:id="@+id/sv_show_user_info"
|
|
|
@ -139,15 +137,13 @@
|
|
139
|
137
|
android:layout_height="34dp"
|
|
140
|
138
|
android:layout_above="@+id/sv_show_tvcon"
|
|
141
|
139
|
android:layout_marginLeft="15dp"
|
|
142
|
|
android:layout_marginBottom="5dp"
|
|
143
|
|
android:background="#2ff">
|
|
|
140
|
android:layout_marginBottom="5dp">
|
|
144
|
141
|
|
|
145
|
142
|
<ImageView
|
|
146
|
143
|
android:id="@+id/sv_show_user_avatar"
|
|
147
|
144
|
android:layout_width="20dp"
|
|
148
|
145
|
android:layout_height="20dp"
|
|
149
|
|
android:layout_centerVertical="true"
|
|
150
|
|
android:background="#fff" />
|
|
|
146
|
android:layout_centerVertical="true" />
|
|
151
|
147
|
|
|
152
|
148
|
<TextView
|
|
153
|
149
|
android:id="@+id/sv_show_user_name"
|
|
|
@ -170,7 +166,6 @@
|
|
170
|
166
|
android:textSize="12sp" />
|
|
171
|
167
|
</RelativeLayout>
|
|
172
|
168
|
|
|
173
|
|
|
|
174
|
169
|
<LinearLayout
|
|
175
|
170
|
android:id="@+id/sv_show_topic"
|
|
176
|
171
|
android:layout_width="wrap_content"
|
|
|
@ -196,8 +191,7 @@
|
|
196
|
191
|
android:layout_marginRight="12dp"
|
|
197
|
192
|
android:ellipsize="end"
|
|
198
|
193
|
android:maxLines="1"
|
|
199
|
|
android:text="显示出所有文字内容显示出所有文字内容显示出所有文字内容显示出所有文字内容显示出所有文字内容显示出所有文字内容显示出所有文字内容"
|
|
200
|
|
android:textColor="#fff"
|
|
|
194
|
android:textColor="#fff"
|
|
201
|
195
|
android:textSize="11sp" />
|
|
202
|
196
|
</LinearLayout>
|
|
203
|
197
|
|
|
|
@ -10,7 +10,7 @@
|
|
10
|
10
|
android:layout_height="wrap_content"
|
|
11
|
11
|
android:layout_centerHorizontal="true"
|
|
12
|
12
|
android:layout_marginTop="10dp"
|
|
13
|
|
android:text="12sp12sp12sp"
|
|
|
13
|
android:text="全部评论"
|
|
14
|
14
|
android:textColor="#c2c2c2"
|
|
15
|
15
|
android:textSize="14sp" />
|
|
16
|
16
|
|
|
|
@ -22,7 +22,7 @@
|
|
22
|
22
|
android:layout_alignParentEnd="true"
|
|
23
|
23
|
android:layout_marginTop="9dp"
|
|
24
|
24
|
android:layout_marginEnd="14dp"
|
|
25
|
|
android:background="#fff" />
|
|
|
25
|
android:background="@drawable/icon_dialog_close" />
|
|
26
|
26
|
|
|
27
|
27
|
<View
|
|
28
|
28
|
android:layout_width="match_parent"
|
|
|
@ -55,8 +55,10 @@
|
|
55
|
55
|
android:background="@drawable/bg_comment_report"
|
|
56
|
56
|
android:hint="写评论"
|
|
57
|
57
|
android:minHeight="30dp"
|
|
|
58
|
android:maxLength="200"
|
|
58
|
59
|
android:paddingStart="14dp"
|
|
59
|
60
|
android:paddingEnd="14dp"
|
|
|
61
|
android:textColor="#fff"
|
|
60
|
62
|
android:textColorHint="#7e7e7e" />
|
|
61
|
63
|
|
|
62
|
64
|
<TextView
|