【发布时间】:2023-01-25 18:26:00
【问题描述】:
{
“错误”:假的,
“消息”:“成功”,
“数据”: {
“项目”: [
{
“id”:“i01”,
“名称”:“特色”
},
{
“id”:“i07”,
"name": "继续观看"
},
{
"id": "i03",
"name": "推荐"
},
{
"id": "i04",
“名称”:“预告片”
},
{
“id”:“i05”,
“名称”:“最新系列”
},
{
“id”:“i06”,
“名称”:“所有系列”
},
{
“id”:“i08”,
“名称”:“马拉雅拉姆语”
},
{
“id”:“i09”,
“名称”:“泰米尔语”
},
{
"id": "i10",
“名称”:“印地语”
},
{
“id”:“i11”,
“名称”:“泰卢固语”
},
{
“id”:“i12”,
“名称”:“卡纳达语”
}
],
“精选”:{
“编号”:15,
"name": "巫师:世外桃源传说",
"description": "Wizards: Tales of Arcadia 动画系列",
“海报”:“系列/15/海报/1674561938132-wtoa.jpg”,
“活跃”:真实,
“创建时间”:“2023-01-18T09:24:27.732Z”,
“更新时间”:“2023-01-18T09:24:27.732Z”,
“特色”:真实,
“导演”: ””,
“演员表”:[
{
“名称”:“演员1”
},
{
“名称”:“cast2”
}
],
“流派”:[
{
“编号”:1,
“名称”:“行动”
},
{
“编号”:13,
“名称”:“幻想”
}
],
“季节”:[
{
“编号”:10,
“series_id”:15,
"name": "第一季",
"description": "巫师第 1 季:世外桃源传说",
“剧集”:[
{
“编号”:20,
“fwp_id”:“d29433a2-1724-4a6c-a1ba-a6973920b2f3”,
“series_id”:15,
“season_id”:10,
“名称”:“WTOA S1 E1”,
"description": "Wizards: Tales of Arcadia Season 1 Episode 2",
“海报”:“视频/d29433a2-1724-4a6c-a1ba-a6973920b2f3/海报/1674563591831-wtoa.jpg”
},
{
“编号”:20,
“fwp_id”:“d29433a2-1724-4a6c-a1ba-a6973920b2f3”,
“series_id”:15,
“season_id”:10,
“名称”:“WTOA S1 E1”,
"description": "Wizards: Tales of Arcadia Season 1 Episode 2",
“海报”:“视频/d29433a2-1724-4a6c-a1ba-a6973920b2f3/海报/1674563591831-wtoa.jpg”
},
{
“编号”:21,
“fwp_id”:“43eb2eab-bb2d-43f0-aa2d-3d4ab18489c0”,
“series_id”:15,
“season_id”:10,
“名称”:“WTOA S1 E2”,
"description": "Wizards: Tales of Arcadia Season 1 Episode 2",
“海报”:“视频/43eb2eab-bb2d-43f0-aa2d-3d4ab18489c0/海报/1674563538467-wtoa.jpg”
},
{
“编号”:21,
“fwp_id”:“43eb2eab-bb2d-43f0-aa2d-3d4ab18489c0”,
“series_id”:15,
“season_id”:10,
“名称”:“WTOA S1 E2”,
"description": "Wizards: Tales of Arcadia Season 1 Episode 2",
“海报”:“视频/43eb2eab-bb2d-43f0-aa2d-3d4ab18489c0/海报/1674563538467-wtoa.jpg”
}
]
}
],
“itemId”:“i01”
},
“继续观看”:[
{
"itemId": "i07",
“编号”:15,
"name": "巫师:世外桃源传说",
"description": "Wizards: Tales of Arcadia 动画系列",
“海报”:“系列/15/海报/1674561938132-wtoa.jpg”,
“活跃”:真实,
“创建时间”:“2023-01-18T09:24:27.732Z”,
“更新时间”:“2023-01-18T09:24:27.732Z”,
“season_count”:1,
“episode_count”:2,
“流派”:[
{
“编号”:1,
“名称”:“行动”
},
{
“编号”:13,
“名称”:“幻想”
}
]
}
],
“推荐的”: [
{
"itemId": "i03",
"id": 10,
"name": "Castlevania",
"description": "Castlevania Animated Series",
"poster": "series/10/poster/1674562131889-castlevania.jpg",
"active": true,
"created_at": "2023-01-18T08:51:18.723Z",
"updated_at": "2023-01-18T08:51:18.723Z",
"season_count": 2,
"episode_count": 6,
"genres": [
{
"id": 13,
"name": "Fantasy"
},
{
"id": 1,
"name": "Action"
}
]
}
],
"trailers": [
{
"itemId": "i04",
"id": 15,
"name": "Wizards:Tales of Arcadia",
"description": "Wizards:Tales of Arcadia Animated Series",
"poster": "series/15/poster/1674561938132-wtoa.jpg",
"active": true,
"created_at": "2023-01-18T09:24:27.732Z",
"updated_at": "2023-01-18T09:24:27.732Z",
"season_count": 1,
"episode_count": 2,
"genres": [
{
"id": 1,
"name": "Action"
},
{
"id": 13,
"name": "Fantasy"
}
]
}
],
"allSeries": [
{
"itemId": "i06",
"id": 15,
"name": "Wizards:Tales of Arcadia",
"description": "Wizards:Tales of Arcadia Animated Series",
"poster": "series/15/poster/1674561938132-wtoa.jpg",
"active": true,
"created_at": "2023-01-18T09:24:27.732Z",
"updated_at": "2023-01-18T09:24:27.732Z",
"season_count": 1,
"episode_count": 2,
"genres": [
{
"id": 1,
"name": "Action"
},
{
"id": 13,
"name": "Fantasy"
}
]
}
],
"malayalam": [
{
"itemId": "i08",
"id": 15,
"name": "Wizards:Tales of Arcadia",
"description": "Wizards:Tales of Arcadia Animated Series",
"poster": "series/15/poster/1674561938132-wtoa.jpg",
"active": true,
"created_at": "2023-01-18T09:24:27.732Z",
"updated_at": "2023-01-18T09:24:27.732Z",
"season_count": 1,
"episode_count": 2,
"genres": [
{
"id": 1,
"name": "Action"
},
{
"id": 13,
"name": "Fantasy"
}
]
}
"tamil": [
{
"itemId": "i09",
"id": 15,
"name": "Wizards:Tales of Arcadia",
"description": "Wizards:Tales of Arcadia Animated Series",
"poster": "series/15/poster/1674561938132-wtoa.jpg",
"active": true,
"created_at": "2023-01-18T09:24:27.732Z",
"updated_at": "2023-01-18T09:24:27.732Z",
"season_count": 1,
"episode_count": 2,
"genres": [
{
"id": 1,
"name": "Action"
},
{
"id": 13,
"name": "Fantasy"
}
]
}
],
"hindi": [
{
"itemId": "i10",
"id": 15,
"name": "Wizards:Tales of Arcadia",
"description": "Wizards:Tales of Arcadia Animated Series",
"poster": "series/15/poster/1674561938132-wtoa.jpg",
"active": true,
"created_at": "2023-01-18T09:24:27.732Z",
"updated_at": "2023-01-18T09:24:27.732Z",
"season_count": 1,
"episode_count": 2,
"genres": [
{
"id": 1,
"name": "Action"
},
{
"id": 13,
"name": "Fantasy"
}
]
}
],
"telugu": [
{
"itemId": "i11",
"id": 15,
"name": "Wizards:Tales of Arcadia",
"description": "Wizards:Tales of Arcadia Animated Series",
"poster": "series/15/poster/1674561938132-wtoa.jpg",
"active": true,
"created_at": "2023-01-18T09:24:27.732Z",
"updated_at": "2023-01-18T09:24:27.732Z",
"season_count": 1,
"episode_count": 2,
"genres": [
{
"id": 1,
"name": "Action"
},
{
"id": 13,
"name": "Fantasy"
}
]
}
],
"kannada": [
{
"itemId": "i12",
"id": 15,
"name": "Wizards:Tales of Arcadia",
"description": "Wizards:Tales of Arcadia Animated Series",
"poster": "series/15/poster/1674561938132-wtoa.jpg",
"active": true,
"created_at": "2023-01-18T09:24:27.732Z",
"updated_at": "2023-01-18T09:24:27.732Z",
"season_count": 1,
"episode_count": 2,
"genres": [
{
"id": 1,
"name": "Action"
},
{
"id": 13,
"name": "Fantasy"
}
]
}
]
},
"details": []
}
我正在尝试使用 Android kotlin 在嵌套的 RecyclerView 中显示来自 JSON 对象的多个数组列表。我已经能够成功解析 JSON 对象并提取数组列表,但我无法在嵌套的 RecyclerView 中显示它们。
这是我正在使用的 JSON 对象的示例
【问题讨论】:
标签: android json kotlin nestedrecyclerview