作者 daidong

二维码1

... ... @@ -31,7 +31,8 @@
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
<activity android:name=".zxing.jafsbActivity"></activity>
<activity android:name=".ui.jxt.fragment.Tz.TjtzActivity"></activity>
<activity android:name=".zxing.jafsbActivity" />
<activity android:name=".ui.jxt.activity.HD.HdmbxqActivity" />
<activity android:name=".ui.jxt.activity.HD.TjmbActivity" />
<activity
... ...
... ... @@ -8,8 +8,8 @@ public class TzxqEntity {
/**
* code : 1
* msg :
* time : 1583290292
* data : {"id":31,"teacher_id":36,"symbol":"","title":"没事","call":"","content":"类型","inscription":"","open_switch":1,"create_time":1583290173,"date":"03-04 10:49","parent_ids":"839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890","teacher_ids":"532701196808010023,530102197207160727,532329198207150024","class_id":117,"audio":[],"video":[],"images":[],"link":[],"class_name":"六(1班)","teacher_name":"寸晓丹","un_view_num":55,"re_view_num":0,"total":55,"rate":0,"list":{"un_view":[{"id":2427,"parent_name":"高颖","student_name":"翟若宁","photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2425,"parent_name":"罗艳萍","student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2426,"parent_name":"寸晓丹","student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2373,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2374,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2375,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2376,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2377,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2378,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2379,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2380,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2381,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2382,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2383,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2384,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2385,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2386,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2387,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2388,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2389,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2390,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2391,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2392,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2393,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2394,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2395,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2396,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2397,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2398,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2399,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2400,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2401,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2402,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2403,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2404,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2405,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2406,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2407,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2408,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2409,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2410,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2411,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2412,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2413,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2414,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2415,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2416,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2417,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2418,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2419,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2420,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2421,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2422,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2423,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2424,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"}],"re_view":[]}}
* time : 1583548593
* data : {"id":43,"teacher_id":36,"symbol":"","title":"主题没送","call":"","content":"主题","inscription":"","open_switch":1,"create_time":1583546653,"date":"03-07 10:04","parent_ids":"839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890","teacher_ids":"532701196808010023,530102197207160727,532329198207150024","class_id":117,"audio":[],"video":[],"images":[],"link":[],"class_name":"六(1班)","teacher_name":"寸晓丹","un_view_num":55,"re_view_num":0,"total":55,"rate":0,"list":{"un_view":[{"id":3228,"parent_name":"高颖","student_name":"翟若宁","photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3226,"parent_name":"罗艳萍","student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3227,"parent_name":"寸晓丹","student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3174,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3175,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3176,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3177,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3178,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3179,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3180,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3181,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3182,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3183,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3184,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3185,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3186,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3187,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3188,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3189,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3190,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3191,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3192,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3193,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3194,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3195,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3196,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3197,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3198,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3199,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3200,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3201,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3202,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3203,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3204,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3205,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3206,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3207,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3208,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3209,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3210,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3211,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3212,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3213,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3214,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3215,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3216,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3217,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3218,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3219,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3220,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3221,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3222,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3223,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3224,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3225,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"}],"re_view":[]}}
*/
private int code;
... ... @@ -51,16 +51,16 @@ public class TzxqEntity {
public static class DataBean {
/**
* id : 31
* id : 43
* teacher_id : 36
* symbol :
* title : 没事
* title : 主题没送
* call :
* content : 类型
* content : 主题
* inscription :
* open_switch : 1
* create_time : 1583290173
* date : 03-04 10:49
* create_time : 1583546653
* date : 03-07 10:04
* parent_ids : 839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890
* teacher_ids : 532701196808010023,530102197207160727,532329198207150024
* class_id : 117
... ... @@ -74,7 +74,7 @@ public class TzxqEntity {
* re_view_num : 0
* total : 55
* rate : 0
* list : {"un_view":[{"id":2427,"parent_name":"高颖","student_name":"翟若宁","photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2425,"parent_name":"罗艳萍","student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2426,"parent_name":"寸晓丹","student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2373,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2374,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2375,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2376,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2377,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2378,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2379,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2380,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2381,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2382,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2383,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2384,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2385,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2386,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2387,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2388,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2389,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2390,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2391,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2392,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2393,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2394,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2395,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2396,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2397,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2398,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2399,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2400,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2401,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2402,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2403,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2404,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2405,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2406,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2407,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2408,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2409,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2410,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2411,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2412,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2413,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2414,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2415,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2416,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2417,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2418,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2419,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2420,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2421,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2422,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2423,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":2424,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"}],"re_view":[]}
* list : {"un_view":[{"id":3228,"parent_name":"高颖","student_name":"翟若宁","photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3226,"parent_name":"罗艳萍","student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3227,"parent_name":"寸晓丹","student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3174,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3175,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3176,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3177,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3178,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3179,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3180,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3181,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3182,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3183,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3184,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3185,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3186,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3187,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3188,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3189,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3190,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3191,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3192,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3193,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3194,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3195,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3196,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3197,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3198,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3199,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3200,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3201,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3202,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3203,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3204,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3205,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3206,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3207,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3208,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3209,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3210,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3211,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3212,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3213,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3214,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3215,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3216,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3217,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3218,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3219,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3220,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3221,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3222,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3223,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3224,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"},{"id":3225,"parent_name":null,"student_name":null,"photo":"http://tusmartedu.w.brotop.cn/assets/img/man_icon.png","read_time":"1970-01-01 08:00"}],"re_view":[]}
*/
private int id;
... ... @@ -97,10 +97,10 @@ public class TzxqEntity {
private int total;
private int rate;
private ListBean list;
private List<?> audio;
private List<?> video;
private List<?> images;
private List<?> link;
private List<String> audio;
private List<String> video;
private List<String> images;
private List<String> link;
public int getId() {
return id;
... ... @@ -266,7 +266,7 @@ public class TzxqEntity {
return audio;
}
public void setAudio(List<?> audio) {
public void setAudio(List<String> audio) {
this.audio = audio;
}
... ... @@ -274,7 +274,7 @@ public class TzxqEntity {
return video;
}
public void setVideo(List<?> video) {
public void setVideo(List<String> video) {
this.video = video;
}
... ... @@ -282,7 +282,7 @@ public class TzxqEntity {
return images;
}
public void setImages(List<?> images) {
public void setImages(List<String> images) {
this.images = images;
}
... ... @@ -290,7 +290,7 @@ public class TzxqEntity {
return link;
}
public void setLink(List<?> link) {
public void setLink(List<String> link) {
this.link = link;
}
... ... @@ -316,7 +316,7 @@ public class TzxqEntity {
public static class UnViewBean {
/**
* id : 2427
* id : 3228
* parent_name : 高颖
* student_name : 翟若宁
* photo : http://tusmartedu.w.brotop.cn/assets/img/man_icon.png
... ...
package com.yinhebairong.clasmanage.ui.jxt.activity;
import android.content.ContentResolver;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Color;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.MediaStore;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
... ... @@ -19,30 +13,22 @@ import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.recyclerview.widget.RecyclerView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.donkingliang.imageselector.utils.ImageSelector;
import com.yinhebairong.clasmanage.Config;
import com.yinhebairong.clasmanage.R;
import com.yinhebairong.clasmanage.base.BaseActivity;
import com.yinhebairong.clasmanage.base.instant.Layout;
import com.yinhebairong.clasmanage.base.instant.TopNavigationBar;
import com.yinhebairong.clasmanage.base.instant.slideslip.SlideLip;
import com.yinhebairong.clasmanage.bean.HDMBBean;
import com.yinhebairong.clasmanage.entity.DcwjListEntity;
import com.yinhebairong.clasmanage.entity.FbwjrwEntity;
import com.yinhebairong.clasmanage.entity.JxtImageEntity;
import com.yinhebairong.clasmanage.entity.PostFiel;
import com.yinhebairong.clasmanage.entity.VideoEntity;
import com.yinhebairong.clasmanage.m.M;
import com.yinhebairong.clasmanage.network.ApiService;
import com.yinhebairong.clasmanage.ui.jxt.activity.DC.Dc_jsbjActivity;
import com.yinhebairong.clasmanage.widget.ZysjChooseDialog;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
... ... @@ -52,14 +38,6 @@ import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
@SlideLip(slidelip = false) // 侧滑返回上一页 , 默认不开启 \
@TopNavigationBar(color = Color.TRANSPARENT, setBarBiack = 2) // 状态栏颜色 , 状态栏样式
... ... @@ -111,6 +89,10 @@ public class Dcwj_Activity extends BaseActivity {
private static final int REQUEST_CODE = 0x00000011; // 图片
private static final int PERMISSION_WRITE_EXTERNAL_REQUEST_CODE = 0x00000012; // 图片
private static final int VIDEO_CODE = 0x00000013; // 视频
@BindView(R.id.wj_text)
LinearLayout wjText;
@BindView(R.id.wj_image)
LinearLayout wjImage;
@Override
... ... @@ -122,13 +104,13 @@ public class Dcwj_Activity extends BaseActivity {
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == STRAT_ID && resultCode == RESULT_OK){
if (requestCode == STRAT_ID && resultCode == RESULT_OK) {
Bundle extras = data.getExtras();
ArrayList<String> class_names = extras.getStringArrayList("class_names");
String names = TextUtils.join(",", class_names);
ArrayList<String> teacher_ids = extras.getStringArrayList("teacher_ids");
ArrayList<String> parent_ids = extras.getStringArrayList("parent_ids");
teacherIds = TextUtils.join(",",teacher_ids);
teacherIds = TextUtils.join(",", teacher_ids);
parentIds = TextUtils.join(",", parent_ids);
dcwjXz.setText(names);
dcwjXz.setText("修改班级");
... ... @@ -137,6 +119,18 @@ public class Dcwj_Activity extends BaseActivity {
@Override
protected void setEvent() {
wjText.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
wjImage.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
dcwjJsbj.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
... ... @@ -181,9 +175,9 @@ public class Dcwj_Activity extends BaseActivity {
dcwjDc.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (dcwjDc1.isEnabled()){
if (dcwjDc1.isEnabled()) {
dcwjDc1.setEnabled(false);
}else {
} else {
dcwjDc1.setEnabled(true);
}
}
... ... @@ -235,9 +229,6 @@ public class Dcwj_Activity extends BaseActivity {
});
}
class Dcwj_Adapter extends BaseQuickAdapter<DcwjListEntity, BaseViewHolder> {
public Dcwj_Adapter(int layoutResId, @Nullable List<DcwjListEntity> data) {
... ...
... ... @@ -2,13 +2,11 @@ package com.yinhebairong.clasmanage.ui.jxt.activity;
import android.graphics.Color;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
... ... @@ -19,9 +17,7 @@ import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide;
... ... @@ -95,24 +91,24 @@ public class JlxqActivity extends BaseActivity {
RecyclerView jlxqRv2;
int stuid = -1;
String jlId;
// @BindView(R.id.jlxq_tv1)
// TextView jlxqTv1;
// @BindView(R.id.jlxq_photo)
// ImageView jlxqPhoto;
// @BindView(R.id.jlxq_name)
// TextView jlxqName;
// @BindView(R.id.jlgl_data)
// TextView jlglData;
// @BindView(R.id.jlxq_item)
// LinearLayout jlxqItem;
// @BindView(R.id.jlxq_content)
// TextView jlxqContent;
// @BindView(R.id.show_but)
// LinearLayout showBut;
// @BindView(R.id.massage_sc)
// TextView massageSc;
@BindView(R.id.rl_tj2)
RelativeLayout rlTj;
@BindView(R.id.jlxq_tv1)
TextView jlxqTv1;
@BindView(R.id.jlxq_photo)
ImageView jlxqPhoto;
@BindView(R.id.jlxq_name)
TextView jlxqName;
@BindView(R.id.jlgl_data)
TextView jlglData;
@BindView(R.id.jlxq_item)
LinearLayout jlxqItem;
@BindView(R.id.jlxq_content)
TextView jlxqContent;
@BindView(R.id.show_but)
LinearLayout showBut;
@BindView(R.id.massage_sc)
TextView massageSc;
@Override
protected void initData() {
... ... @@ -142,6 +138,7 @@ public class JlxqActivity extends BaseActivity {
setRv(jlxqRv2, 1, 0, 0);
jlxqAdapter = new JlxqAdapter(R.layout.jlxq_item, list);
jlxqRv2.setAdapter(jlxqAdapter);
}
}
... ... @@ -174,28 +171,27 @@ public class JlxqActivity extends BaseActivity {
shopPopup();
}
});
}
private void shopPopup() {
View view = LayoutInflater.from(activity).inflate(R.layout.popup_jl, null);
final PopupWindow popupWindow = new PopupWindow(view, WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.WRAP_CONTENT - tvJlxqCz.getBottom());
final PopupWindow popupWindow = new PopupWindow(view, WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.WRAP_CONTENT);
TextView jl_zf = view.findViewById(R.id.jl_zf);
TextView jl_ch = view.findViewById(R.id.jl_ch);
TextView jl_qx = view.findViewById(R.id.jl_qx);
popupWindow.setOutsideTouchable(true);
popupWindow.setTouchable(true);
popupWindow.setFocusable(true);
setViewLocation(); //底部
popupWindow.setBackgroundDrawable(getResources().getDrawable(R.color.color_tm));
popupWindow.showAsDropDown(tvJlxqCz);
setBackgroundAlpha(0.5f);//设置屏幕透明度
popupWindow.setOnDismissListener(new PopupWindow.OnDismissListener() {
@Override
public void onDismiss() {
setBackgroundAlpha(1f);
}
});
popupWindow.showAtLocation(view, Gravity.BOTTOM,0,M.getNavigationBarHeight(this));
popupWindow.showAtLocation(view, Gravity.BOTTOM, 0, M.getNavigationBarHeight(this));
jl_zf.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
... ... @@ -211,26 +207,11 @@ public class JlxqActivity extends BaseActivity {
jl_qx.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
popupWindow.dismiss();
}
});
}
private void setViewLocation() {
DisplayMetrics dm = new DisplayMetrics();
activity.getWindowManager().getDefaultDisplay().getMetrics(dm);
int height = dm.heightPixels;
Window window = this.getWindow();
WindowManager.LayoutParams lp = window.getAttributes();
lp.x = 0;
lp.y = height;
lp.width = ViewGroup.LayoutParams.MATCH_PARENT;
lp.height = ViewGroup.LayoutParams.WRAP_CONTENT;
// 设置显示位置
onWindowAttributesChanged(lp);
}
private void setBackgroundAlpha(float v) {
WindowManager.LayoutParams lp = getWindow()
.getAttributes();
... ... @@ -238,7 +219,6 @@ public class JlxqActivity extends BaseActivity {
getWindow().setAttributes(lp);
}
//删除
private void getDelete(String jlId) {
View inflate = LayoutInflater.from(activity).inflate(R.layout.pop_jl_del, null);
... ... @@ -317,9 +297,7 @@ public class JlxqActivity extends BaseActivity {
case R.id.tj_but:
getDataTJ();
break;
// case R.id.massage_sc:
// getDelete(jlId);
// break;
}
}
... ... @@ -338,6 +316,7 @@ public class JlxqActivity extends BaseActivity {
public void onNext(TjjlEntity tjjlEntity) {
if (tjjlEntity.getCode() == M.success) {
M.toast(activity, "提交成功");
} else {
rlTj.setVisibility(View.GONE);
Toast.makeText(ctx, "" + tjjlEntity.getMsg(), Toast.LENGTH_SHORT).show();
... ... @@ -357,6 +336,7 @@ public class JlxqActivity extends BaseActivity {
});
}
class JlxqAdapter extends BaseQuickAdapter<JlxpEntity.DataBean.ListBean, BaseViewHolder> {
public JlxqAdapter(int layoutResId, @Nullable List<JlxpEntity.DataBean.ListBean> data) {
super(layoutResId, data);
... ...
... ... @@ -80,19 +80,19 @@ public class FbxqActivity extends BaseActivity {
@Override
protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == STRAT_ID && resultCode == RESULT_OK){
if (requestCode == STRAT_ID && resultCode == RESULT_OK) {
Bundle extras = data.getExtras();
ArrayList<String> class_names = extras.getStringArrayList("class_names");
String names = TextUtils.join(",", class_names);
ArrayList<String> teacher_ids = extras.getStringArrayList("teacher_ids");
ArrayList<String> parent_ids = extras.getStringArrayList("parent_ids");
teacherIds = TextUtils.join(",",teacher_ids);
teacherIds = TextUtils.join(",", teacher_ids);
parentIds = TextUtils.join(",", parent_ids);
fbxqName.setText(names);
fbxqName.setText("修改班级");
}
}
}
@Override
... ... @@ -105,7 +105,6 @@ public class FbxqActivity extends BaseActivity {
startActivityForResult(intent, STRAT_ID);
}
});
}
@OnClick({R.id.include_back, R.id.fbxq_but})
... ...
package com.yinhebairong.clasmanage.ui.jxt.fragment.Tz;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
import androidx.viewpager.widget.ViewPager;
import com.google.android.material.tabs.TabLayout;
import com.yinhebairong.clasmanage.Config;
import com.yinhebairong.clasmanage.R;
import com.yinhebairong.clasmanage.base.BaseActivity;
import com.yinhebairong.clasmanage.base.instant.Layout;
import com.yinhebairong.clasmanage.entity.StudentCkEntity;
import com.yinhebairong.clasmanage.entity.TzxqEntity;
import com.yinhebairong.clasmanage.ui.jxt.activity.Tjxq_Activity;
import com.yinhebairong.clasmanage.ui.jxt.fragment.zy.Zy_Rv_Wck_Fragment;
import com.yinhebairong.clasmanage.ui.jxt.fragment.zy.Zy_Rv_ck_Fragment;
import com.yinhebairong.clasmanage.widget.CircularProgressBar;
import java.util.ArrayList;
import java.util.List;
import butterknife.BindView;
import butterknife.ButterKnife;
import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
@Layout(R.layout.activity_tjtz)
public class TjtzActivity extends BaseActivity {
@BindView(R.id.circular_bar)
CircularProgressBar circularBar;
@BindView(R.id.bfb_tv)
TextView bfbTv;
@BindView(R.id.circle_bar)
RelativeLayout circleBar;
@BindView(R.id.ytj_num)
TextView ytjNum;
@BindView(R.id.wtj_tv)
TextView wtjTv;
@BindView(R.id.circle)
RelativeLayout circle;
@BindView(R.id.include_back)
ImageView includeBack;
@BindView(R.id.include_name)
TextView includeName;
@BindView(R.id.toolbar)
Toolbar toolbar;
@BindView(R.id.tab_layout)
TabLayout tabLayout;
@BindView(R.id.line)
View line;
@BindView(R.id.viewPager)
ViewPager viewPager;
String tzId;
private List<Fragment> fragmentList = new ArrayList<Fragment>();
private List<String> tabNames = new ArrayList<>();
My_TzAdapter fragmentAdater;
@Override
protected void initData() {
Bundle extras = getIntent().getExtras();
tzId = extras.getString("tzId");
Api().tzxq(Config.Token,tzId)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Observer<TzxqEntity>() {
@Override
public void onSubscribe(Disposable d) {
}
@Override
public void onNext(TzxqEntity tzxqEntity) {
circularBar.setMax(tzxqEntity.getData().getTotal());
circularBar.setProgress(tzxqEntity.getData().getRe_view_num());
bfbTv.setText((tzxqEntity.getData().getRe_view_num() / tzxqEntity.getData().getTotal() * 100) + "%");
tabNames.add("未提交" + "(" + tzxqEntity.getData().getUn_view_num() + ")");
tabNames.add("已提交" + "(" + tzxqEntity.getData().getRe_view_num() + ")");
List<?> re_view = tzxqEntity.getData().getList().getRe_view();
List<TzxqEntity.DataBean.ListBean.UnViewBean> un_view = tzxqEntity.getData().getList().getUn_view();
List<StudentCkEntity> studentCkEntities = new ArrayList<>();
List<StudentCkEntity> unstudentCkEntities = new ArrayList<>();
for (int i = 0; i < re_view.size(); i++) {
// studentCkEntities.add(new StudentCkEntity(re_view.get(i).getId(),re_view.get(i).getParent_name(),re_view.get(i).getPhoto(),re_view.get(i).getPhoto(),re_view.get(i).getGender(),re_view.get(i).getSubmit_time(),re_view.get(i).getEvaluate_level_id(),false));
}
for (int i = 0; i < un_view.size(); i++) {
// unstudentCkEntities.add(new StudentCkEntity(un_view.get(i).getId(), un_view.get(i).getParent_name(), un_view.get(i).getStudent_name(), un_view.get(i).getPhoto(),un_view.get(i).getGender(),un_view.get(i).getSubmit_time(),un_view.get(i).getEvaluate_level_id(), false));
}
fragmentList.add(new Zy_Rv_Wck_Fragment(unstudentCkEntities,2, TjtzActivity.this));
fragmentList.add(new Zy_Rv_ck_Fragment(studentCkEntities));
ytjNum.setText("已提交:"+tzxqEntity.getData().getRe_view_num());
wtjTv.setText("未提交:"+tzxqEntity.getData().getUn_view_num());
fragmentAdater = new My_TzAdapter(getSupportFragmentManager());
viewPager.setAdapter(fragmentAdater);
tabLayout.setupWithViewPager(viewPager);
}
@Override
public void onError(Throwable e) {
}
@Override
public void onComplete() {
}
});
includeBack.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
}
@Override
protected void setEvent() {
}
public class My_TzAdapter extends FragmentPagerAdapter {
public My_TzAdapter(FragmentManager fm) {
super(fm);
}
@Override
public int getCount() {
return 2;
}
@Override
public Fragment getItem(int position) {
return fragmentList.get(position);
}
@Nullable
@Override
public String getPageTitle(int position) {
return tabNames.get(position);
}
}
}
... ...
... ... @@ -3,6 +3,7 @@ package com.yinhebairong.clasmanage.ui.jxt.fragment.Tz;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.MotionEvent;
... ... @@ -36,8 +37,6 @@ import com.yinhebairong.clasmanage.entity.JxtImageEntity;
import com.yinhebairong.clasmanage.entity.TzxqEntity;
import com.yinhebairong.clasmanage.entity.VideoEntity;
import com.yinhebairong.clasmanage.m.M;
import com.yinhebairong.clasmanage.ui.jxt.activity.Zyxq_Activity;
import com.yinhebairong.clasmanage.ui.jxt.activity.Zyxq_Dp_Activity;
import java.io.IOException;
import java.text.SimpleDateFormat;
... ... @@ -54,7 +53,9 @@ import io.reactivex.schedulers.Schedulers;
@Layout(R.layout.activity_tzxq)
public class TzxqActivity extends BaseActivity {
Audio_Adapter audio_adapter;
TzimgAdapter tzimgAdapter;
String tzId;
@BindView(R.id.include_back)
ImageView includeBack;
@BindView(R.id.include_name)
... ... @@ -79,39 +80,15 @@ public class TzxqActivity extends BaseActivity {
TextView tzXqlist;
@BindView(R.id.tz_shijian)
TextView tzShijian;
@BindView(R.id.tv_shijain)
TextView tvShijain;
@BindView(R.id.voice_recycler)
RecyclerView voiceRecycler;
@BindView(R.id.img_recycle)
RecyclerView imgRecycle;
@BindView(R.id.jlxq_tv1)
TextView jlxqTv1;
@BindView(R.id.jlxq_photo)
ImageView jlxqPhoto;
@BindView(R.id.jlxq_name)
TextView jlxqName;
@BindView(R.id.jlgl_data)
TextView jlglData;
@BindView(R.id.jlxq_item)
LinearLayout jlxqItem;
@BindView(R.id.jlxq_content)
TextView jlxqContent;
@BindView(R.id.show_but)
LinearLayout showBut;
// @BindView(R.id.massage_sc)
// TextView massageSc;
@BindView(R.id.rl_tj2)
RelativeLayout rlTj;
@BindView(R.id.jlxq_rv2)
RecyclerView jlxqRv2;
@BindView(R.id.fbxq_but)
Button fbxqBut;
@BindView(R.id.jlxq_cy)
LinearLayout jlxqCy;
String tzId;
@BindView(R.id.tv_shijain)
TextView tvShijain;
Audio_Adapter audio_adapter;
TzimgAdapter tzimgAdapter;
@Override
... ... @@ -129,30 +106,34 @@ public class TzxqActivity extends BaseActivity {
@Override
public void onNext(TzxqEntity tzxqEntity) {
jlLsName.setText(tzxqEntity.getData().getTeacher_name());
jlBj.setText(tzxqEntity.getData().getClass_name());
jlTime.setText(tzxqEntity.getData().getDate());
tzTitleTv.setText(tzxqEntity.getData().getTitle());
tvShijain.setText(tzxqEntity.getData().getCreate_time());
Glide.with(TzxqActivity.this).load(tzxqEntity.getData()).into(jlxqImg);
List<String> audio = (List<String>) tzxqEntity.getData().getAudio();
List<VideoEntity> videoEntityList = new ArrayList<>();
for (int i = 0; i < audio.size(); i++) {
videoEntityList.add(new VideoEntity(audio.get(i), false));
}
audio_adapter = new Audio_Adapter(R.layout.item_yinpin_layout, videoEntityList);
voiceRecycler.setLayoutManager(new LinearLayoutManager(TzxqActivity.this));
voiceRecycler.setAdapter(audio_adapter);
List<JxtImageEntity> show_adapter = new ArrayList<>();
tzimgAdapter = new TzimgAdapter(R.layout.item_select_picture, show_adapter);
imgRecycle.setLayoutManager(new GridLayoutManager(TzxqActivity.this, 3));
imgRecycle.setAdapter(tzimgAdapter);
tzimgAdapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
@Override
public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
imgPop(show_adapter, position);
Log.e("msjdataa", "onNext: "+tzxqEntity.getMsg());
if (tzxqEntity.getCode() == M.success){
jlLsName.setText(tzxqEntity.getData().getCreate_time());
jlBj.setText(tzxqEntity.getData().getClass_name());
jlTime.setText(tzxqEntity.getData().getDate());
tzTitleTv.setText(tzxqEntity.getData().getTitle());
tvShijain.setText(tzxqEntity.getData().getCreate_time());
Glide.with(TzxqActivity.this).load(tzxqEntity.getData()).into(jlxqImg);
List<String> audio = (List<String>) tzxqEntity.getData().getAudio();
List<VideoEntity> videoEntityList = new ArrayList<>();
for (int i = 0; i < audio.size(); i++) {
videoEntityList.add(new VideoEntity(audio.get(i), false));
}
});
audio_adapter = new Audio_Adapter(R.layout.item_yinpin_layout, videoEntityList);
voiceRecycler.setLayoutManager(new LinearLayoutManager(TzxqActivity.this));
voiceRecycler.setAdapter(audio_adapter);
List<JxtImageEntity> show_adapter = new ArrayList<>();
tzimgAdapter = new TzimgAdapter(R.layout.item_select_picture, show_adapter);
imgRecycle.setLayoutManager(new GridLayoutManager(TzxqActivity.this, 3));
imgRecycle.setAdapter(tzimgAdapter);
tzimgAdapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
@Override
public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
imgPop(show_adapter, position);
}
});
}
}
@Override
... ... @@ -173,6 +154,7 @@ public class TzxqActivity extends BaseActivity {
StandardGSYVideoPlayer player;
GSYVideoOptionBuilder gsyVideoOption;
private boolean isPlay;
private void imgPop(List<JxtImageEntity> show_adapter, int position) {
this.pageSze = position;
View view = LayoutInflater.from(TzxqActivity.this).inflate(R.layout.pop_zpgl_image, null);
... ... @@ -329,6 +311,7 @@ public class TzxqActivity extends BaseActivity {
}
class Audio_Adapter extends BaseQuickAdapter<VideoEntity, BaseViewHolder> {
public Audio_Adapter(int layoutResId, @Nullable List<VideoEntity> data) {
super(layoutResId, data);
... ...
... ... @@ -103,8 +103,15 @@ public class Tz_Rv_Fragment extends BaseFragment {
Intent tzintent = new Intent(getContext(), TzxqActivity.class);
tzintent.putExtra("TzId",dataBeans.get(position).getId()+"");
startActivity(tzintent);
Toast.makeText(getContext(), "发布成功", Toast.LENGTH_SHORT).show();
jxt_tz_adapter.notifyDataSetChanged();
}
});
jxt_tz_adapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
@Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
List<JxttzEntity.DataBeanX.DataBean> dataBeans = adapter.getData();
Intent tzintent = new Intent(getContext(), TzxqActivity.class);
tzintent.putExtra("TzId",dataBeans.get(position).getId()+"");
startActivity(tzintent);
}
});
}
... ...
... ... @@ -176,6 +176,7 @@ public class LoginActivity extends BaseActivity {
for(int i=0;i<entity.getData().getUser().getStudentInfoList().size();i++){
Config.id = Integer.parseInt(entity.getData().getUser().getStudentInfoList().get(i).getId());
}}
Config.ClassId = entity.getData().getUser().getClassId();
SharedPreferenceUtil.put(LoginActivity.this, M.Type, entity.getData().getUser().getType() + "");
SharedPreferenceUtil.put(LoginActivity.this, M.Token, entity.getData().getToken() + "");
... ...
package com.yinhebairong.clasmanage.zxing;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import com.bumptech.glide.Glide;
import com.yinhebairong.clasmanage.Config;
import com.yinhebairong.clasmanage.R;
import com.yinhebairong.clasmanage.base.BaseActivity;
import com.yinhebairong.clasmanage.base.instant.Layout;
import com.yinhebairong.clasmanage.entity.ErweimaEntity;
import com.yinhebairong.clasmanage.m.M;
import butterknife.BindView;
import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
import butterknife.ButterKnife;
@Layout(R.layout.activity_jifen_)
public class Jifen_Activity extends BaseActivity {
... ... @@ -34,24 +26,39 @@ public class Jifen_Activity extends BaseActivity {
TextView tvJifen;
@BindView(R.id.tv_biaoxian)
TextView tvBiaoxian;
@BindView(R.id.include_back)
ImageView includeBack;
@BindView(R.id.rl_jifen)
LinearLayout rlJifen;
@BindView(R.id.bxf)
TextView bxf;
@Override
protected void initData() {
int score = getIntent().getIntExtra("score",0);
includeBack.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
finish();
}
});
int score = getIntent().getIntExtra("score", 0);
String name = getIntent().getStringExtra("name");
int status = getIntent().getIntExtra("status",0);
int status = getIntent().getIntExtra("status", 0);
String names = getIntent().getStringExtra("names");
Log.e("msjdatas", "initData: "+score);
Log.e("msjdatas", "initData: "+name);
Log.e("msjdatas", "initData: "+status);
Log.e("msjdatas", "initData: "+names);
tvName1.setText(names+"");
tvJifen.setText(score+"");
String base_name = getIntent().getStringExtra("base_name");
Log.e("msjdatas", "initData: " + score);
Log.e("msjdatas", "initData: " + name);
Log.e("msjdatas", "initData: " + status);
Log.e("msjdatas", "initData: " + names);
tvName1.setText(names + "");
tvJifen.setText(score + "");
tvBiaoxian.setText(name);
bxf.setText(base_name);
}
@Override
protected void setEvent() {
}
}
}
... ...
... ... @@ -46,7 +46,6 @@ import me.jessyan.autosize.utils.LogUtils;
*/
public final class CaptureActivity extends Activity implements
SurfaceHolder.Callback {
private static final String TAG = CaptureActivity.class.getSimpleName();
// 相机控制
... ... @@ -194,10 +193,10 @@ public final class CaptureActivity extends Activity implements
*/
public void handleDecode(Result rawResult, Bitmap barcode, float scaleFactor) {
inactivityTimer.onActivity();
boolean fromLiveScan = barcode != null;
//这里处理解码完成后的结果,此处将参数回传到Activity处理
if (fromLiveScan) {
beepManager.playBeepSoundAndVibrate();
Intent intent = getIntent();
intent.putExtra("codedContent", rawResult.getText());
... ... @@ -224,14 +223,16 @@ public final class CaptureActivity extends Activity implements
intent.putExtra("name",evaluate.getName());
intent.putExtra("qrcode",evaluate.getQrcode());
intent.putExtra("names",studentBean.getName());
intent.putExtra("base_name",evaluate.getBase_name());
startActivity(intent);
} else {
}else {
intent.setClass(CaptureActivity.this, jafsbActivity.class);//失败
startActivity(intent);
}
finish();
}
@Override
public void onError(Throwable e) {
... ... @@ -243,6 +244,7 @@ public final class CaptureActivity extends Activity implements
}
});
}
}
... ...
package com.yinhebairong.clasmanage.zxing;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.yinhebairong.clasmanage.R;
import com.yinhebairong.clasmanage.base.BaseActivity;
import com.yinhebairong.clasmanage.base.instant.Layout;
import butterknife.BindView;
import butterknife.ButterKnife;
@Layout(R.layout.activity_jafsb)
public class jafsbActivity extends BaseActivity {
@BindView(R.id.include_back)
ImageView includeBack;
@BindView(R.id.img_touxiang)
ImageView imgTouxiang;
@BindView(R.id.tv_name1)
TextView tvName1;
@BindView(R.id.rl_jifen)
RelativeLayout rlJifen;
@Override
protected void initData() {
includeBack.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
finish();
}
});
}
@Override
... ... @@ -22,4 +40,5 @@ public class jafsbActivity extends BaseActivity {
}
}
... ...
... ... @@ -216,6 +216,7 @@
android:layout_alignParentBottom="true"
>
<LinearLayout
android:id="@+id/wj_text"
android:layout_width="@dimen/dp_76"
android:layout_height="@dimen/dp_42"
android:gravity="center"
... ... @@ -235,6 +236,7 @@
android:text="文字"/>
</LinearLayout>
<LinearLayout
android:id="@+id/wj_image"
android:layout_width="@dimen/dp_76"
android:layout_height="@dimen/dp_42"
android:gravity="center"
... ...
... ... @@ -6,10 +6,27 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#BDC4CE"
android:orientation="vertical"
tools:context=".zxing.jafsbActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_44"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/include_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_6"
android:padding="@dimen/dp_10"
android:src="@mipmap/back_icon" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
... ...
... ... @@ -6,9 +6,27 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFAB13"
android:orientation="vertical"
tools:context=".zxing.Jifen_Activity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_44"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/include_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_6"
android:padding="@dimen/dp_10"
android:src="@mipmap/back_icon" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
... ... @@ -52,16 +70,30 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
<TextView
android:id="@+id/tv_biaoxian"
android:text="活动积极(表现良好)"
android:textSize="@dimen/dp_16"
android:layout_marginTop="@dimen/dp_8"
android:layout_marginLeft="@dimen/dp_150"
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
<TextView
android:id="@+id/tv_biaoxian"
android:text="活动积极"
android:textSize="@dimen/dp_16"
android:layout_marginTop="@dimen/dp_8"
android:layout_marginLeft="@dimen/dp_150"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
<TextView
android:id="@+id/bxf"
android:layout_alignLeft="@+id/tv_biaoxian"
android:text="(表现良好)"
android:textSize="@dimen/dp_16"
android:layout_marginTop="@dimen/dp_8"
android:layout_marginLeft="@dimen/dp_40"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
... ...
... ... @@ -163,6 +163,93 @@
</TextView>
</LinearLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/jlxq_item"
android:layout_marginTop="@dimen/dp_5"
android:background="@drawable/shape_solid_4_fff"
android:layout_width="@dimen/dp_345"
android:layout_height="@dimen/dp_100"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:orientation="horizontal">
<TextView
android:text="1"
android:id="@+id/jlxq_tv1"
android:textColor="#3D444D"
android:textSize="@dimen/dp_16"
android:layout_marginLeft="@dimen/dp_18"
android:layout_marginTop="@dimen/dp_20"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
<ImageView
android:id="@+id/jlxq_photo"
android:layout_marginTop="@dimen/dp_18"
android:layout_marginLeft="@dimen/dp_15"
android:layout_width="@dimen/dp_25"
android:layout_height="@dimen/dp_25"
android:src="@mipmap/img_father"
/>
<TextView
android:id="@+id/jlxq_name"
android:text="龙杰"
android:layout_marginTop="@dimen/dp_20"
android:layout_marginLeft="@dimen/dp_8"
android:layout_width="@dimen/dp_190"
android:layout_height="wrap_content">
</TextView>
<TextView
android:id="@+id/jlgl_data"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="3小时前"
android:layout_marginTop="@dimen/dp_20" />
</LinearLayout>
<LinearLayout
android:id="@+id/show_but"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_32"
android:layout_marginLeft="@dimen/dp_40"
android:layout_marginTop="@dimen/dp_50"
android:layout_marginRight="@dimen/dp_40"
android:layout_marginBottom="@dimen/dp_20"
android:background="@drawable/dot_gray">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal">
<TextView
android:id="@+id/jlxq_content"
android:text="李书父亲,张华"
android:textSize="@dimen/dp_14"
android:layout_marginLeft="@dimen/dp_12"
android:layout_marginTop="@dimen/dp_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
<TextView
android:id="@+id/massage_sc"
android:layout_width="@dimen/dp_18"
android:layout_height="@dimen/dp_18"
android:gravity="center"
android:textColor="#FFFFFF"
android:text="--"
android:layout_alignParentRight="true"
android:layout_marginRight="@dimen/dp_10"
android:background="@drawable/red_cricle"/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/rl_tj2"
android:layout_marginLeft="@dimen/dp_15"
... ... @@ -171,24 +258,9 @@
android:layout_marginTop="@dimen/dp_15"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/ll_rv1"
android:visibility="gone"
android:layout_marginTop="@dimen/dp_12"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/jlxq_rv1"
android:background="@drawable/shape_solid_4_fff"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</androidx.recyclerview.widget.RecyclerView>
</LinearLayout>
<LinearLayout
android:layout_below="@+id/ll_rv1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
... ...
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F7F7F7"
tools:context=".ui.jxt.fragment.Tz.TjtzActivity">
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<LinearLayout
android:layout_marginTop="@dimen/dp_44"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/circle"
android:background="#FFFFFF"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<RelativeLayout
android:id="@+id/circle_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="63dp"
android:layout_marginBottom="@dimen/dp_16"
android:layout_marginTop="@dimen/dp_16"
>
<com.yinhebairong.clasmanage.widget.CircularProgressBar
android:id="@+id/circular_bar"
android:layout_width="@dimen/dp_140"
android:layout_height="@dimen/dp_140"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="75%"
android:id="@+id/bfb_tv"
android:layout_marginTop="@dimen/dp_42"
android:layout_centerHorizontal="true"
android:textColor="#06121E"
android:textSize="@dimen/sp_28"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="已提交"
android:layout_below="@id/bfb_tv"
android:layout_centerHorizontal="true"
android:textColor="#5B5E63"
android:layout_marginTop="@dimen/dp_3"
android:textSize="@dimen/sp_14"
/>
</RelativeLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:gravity="center_vertical"
android:layout_marginTop="@dimen/dp_65"
android:layout_marginRight="@dimen/dp_62"
android:orientation="horizontal">
<TextView
android:background="@drawable/dot_yellow"
android:layout_width="@dimen/dp_8"
android:layout_height="@dimen/dp_8"
/>
<TextView
android:id="@+id/ytj_num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_4"
android:text="已提交:38"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:gravity="center_vertical"
android:layout_marginTop="@dimen/dp_90"
android:layout_marginRight="@dimen/dp_62"
android:orientation="horizontal">
<TextView
android:background="@drawable/dot_gray"
android:layout_width="@dimen/dp_8"
android:layout_height="@dimen/dp_8"
/>
<TextView
android:id="@+id/wtj_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_4"
android:text="未提交:12"/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="#00ffffff"
app:contentInsetStart="0dp"
android:gravity="center_vertical"
app:layout_collapseMode="pin"
app:titleTextColor="#ffffff">
<include layout="@layout/include_title" />
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.CollapsingToolbarLayout>
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="#FFFFFF"
app:tabGravity="fill"
app:tabIndicatorHeight="@dimen/dp_2"
app:tabIndicatorColor="#FFAB13"
app:tabIndicatorFullWidth="false"
app:tabMaxWidth="0dp"
app:tabMode="fixed"
app:tabSelectedTextColor="#FFAB13"
app:tabTextColor="#3D444D"></com.google.android.material.tabs.TabLayout>
</com.google.android.material.appbar.AppBarLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<View
android:id="@+id/line"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_2"
android:background="#E3E3E3"/>
<androidx.viewpager.widget.ViewPager
android:layout_below="@+id/line"
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/dp_68"></androidx.viewpager.widget.ViewPager>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_60"
android:layout_alignParentBottom="true"
android:background="@color/color_fff"
android:gravity="center_vertical"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_60"
android:orientation="vertical"
android:gravity="center"
android:background="#FFFFFF"
>
<Button
android:layout_width="@dimen/dp_343"
android:layout_height="@dimen/dp_44"
android:gravity="center"
android:textColor="#FFFFFF"
android:textSize="@dimen/sp_14"
android:text="一键提醒(12)"
android:background="@drawable/dot_yellow"/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file
... ...
... ... @@ -212,24 +212,6 @@
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<LinearLayout
android:id="@+id/jlxq_cy"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_60"
android:orientation="vertical"
android:gravity="center"
android:background="#FFFFFF"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/fbxq_but"
android:layout_width="@dimen/dp_343"
android:layout_height="@dimen/dp_44"
android:gravity="center"
android:textColor="#FFFFFF"
android:textSize="@dimen/sp_14"
android:text="参与接龙"
android:background="@drawable/dot_yellow"/>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
... ...
... ... @@ -3,50 +3,56 @@
android:background="#FFFFFF"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="wrap_content">
<LinearLayout
android:orientation="vertical"
android:background="@drawable/shape_solid_10_10_fff"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="@dimen/dp_160">
<TextView
android:id="@+id/jl_zf"
android:text="转发"
android:gravity="center"
android:textSize="@dimen/dp_15"
android:textColor="#06121E"
android:layout_height="@dimen/dp_170"
android:orientation="vertical">
<LinearLayout
android:background="@drawable/shape_solid_10_10_fff"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50">
</TextView>
<View
android:background="#EBEBEB"
android:layout_marginLeft="@dimen/dp_28"
android:layout_marginRight="@dimen/dp_28"
android:layout_width="wrap_content"
android:layout_height="1dp"></View>
<TextView
android:id="@+id/jl_ch"
android:text="撤回"
android:gravity="center"
android:textSize="@dimen/dp_15"
android:textColor="#06121E"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50">
</TextView>
<View
android:background="#EBEBEB"
android:layout_width="wrap_content"
android:layout_height="3dp"></View>
android:layout_height="@dimen/dp_160">
<TextView
android:id="@+id/jl_zf"
android:text="转发"
android:gravity="center"
android:textSize="@dimen/dp_15"
android:textColor="#06121E"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50">
</TextView>
<View
android:background="#EBEBEB"
android:layout_marginLeft="@dimen/dp_28"
android:layout_marginRight="@dimen/dp_28"
android:layout_width="wrap_content"
android:layout_height="1dp"></View>
<TextView
android:id="@+id/jl_ch"
android:text="撤回"
android:gravity="center"
android:textSize="@dimen/dp_15"
android:textColor="#06121E"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50">
</TextView>
<View
android:background="#EBEBEB"
android:layout_width="wrap_content"
android:layout_height="3dp"></View>
<TextView
android:id="@+id/jl_qx"
android:text="取消"
android:gravity="center"
android:textSize="@dimen/dp_15"
android:textColor="#06121E"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50">
</TextView>
</LinearLayout>
<TextView
android:id="@+id/jl_qx"
android:text="取消"
android:gravity="center"
android:textSize="@dimen/dp_15"
android:textColor="#06121E"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_50">
</TextView>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
\ No newline at end of file
... ...