android - listView中这个如何把此Json日期放到所归lists上面?
迷茫
迷茫 2017-04-17 17:57:12
0
1
695

请问如何把日期放到所归lists上面,求思路!!!

Json数据如下:

{"code":1,"message":"团队已使用模板返回成功","result":[{"date":"2016-12-05","lists":[{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"},{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"},{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"}]},{"date":"2016-12-05","lists":[{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"},{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"},{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"}]},{"date":"2016-12-05","lists":[{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"},{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"},{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"}]},{"date":"2016-12-05","lists":[{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"},{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"},{"category":"浪漫类","create_at":"转发时间","id":"4","mind":"必发提醒1提醒0不提醒","name":"巴黎之夜","thumb":"http://192.168.0.18/Uploads/weiretrans/thumb.png","times":"1转发次数","useis":"1当前用户是否已使用1是0否"}]}]}
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

全員に返信(1)
大家讲道理

これは冗長です。リストは現在データと同じレベルにあります。

という Bean クラスを構築できます。 リーリー

ListsBean を使用する場合、親クラス ResultBean の getDate を呼び出して日付を取得できます。

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート