検索

ホームページ  >  に質問  >  本文

android - listView中这个如何把此Json日期放到所归lists上面?

请问如何把日期放到所归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否"}]}]}
迷茫迷茫2773日前701

全員に返信(1)返信します

  • 大家讲道理

    大家讲道理2017-04-17 17:59:12

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

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

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

    返事
    0
  • キャンセル返事