从 URI 解析 json 的多级 ExpandableListView
multilevel ExpandableListView with json parsing from URI
我想创建一个多级 ExpandableListView
,JSON 从 URI 解析,ExpandableListView
值仅从 URI 获取。
例如:
1. -->category
1. book
--> 1.tamil
book1,
book2
--> 2.English
book1,
book2
2.sports
...
3.education
...
这样可以吗?
请给我一个解决方案,先谢谢了。
您有两个选择:
创建您自己的自定义 ExpandableListView
(或 ListView
)class。
使用像tree-view-list-android or AndroidTreeView这样的第三方库。
我想创建一个多级 ExpandableListView
,JSON 从 URI 解析,ExpandableListView
值仅从 URI 获取。
例如:
1. -->category
1. book
--> 1.tamil
book1,
book2
--> 2.English
book1,
book2
2.sports
...
3.education
...
这样可以吗?
请给我一个解决方案,先谢谢了。
您有两个选择:
创建您自己的自定义
ExpandableListView
(或ListView
)class。使用像tree-view-list-android or AndroidTreeView这样的第三方库。