从另一个列表视图填充列表视图视图、列表

2023-09-12 22:28:45 作者:無歡

我要做到这一点:我有一个SQLite表与此数据。

I need to achieve this: I have a sqlite table with this data

slno Type   Level_1 Level_2      Level_3
1 Animals   Cat     Null         /sdcard/Video
2 Animals   Cat     Null         /sdcard/PDF
3 Birds    Aves     HummingBird  /sdcard/video

我应该有一个列表视图与动物及禽鸟,点击动物显示我的猫,而伯德表明了我鸟类。然后依此类推,直至含量 - 其具有根据类型进行播放。通过LEVEL_1的Activity_2等,并得到了列表视图 - 现在,这可以通过创建大量的活动地说动物水平来实现。但是,在我的情况下,水平可能不是固定的 - 有可能是一个level_4即将在那里的内容 - 这样的活动创造有是动态的,不能是静态的 - 如何才能实现这一目标。

I should have a list view with Animals and Birds , clicking on Animals shows me Cat, while Bird shows me Aves. Then so on until the content - which has to be played depending on the type. Now this can be achieved by creating a lot of Activities say for Animals level - pass level_1 for Activity_2 and so on and get the list views. But in my case the levels may not be fixed - there might be a level_4 coming in where there is content - so the activity creation has to be dynamic and cannot be static - how can this be achieved ?

推荐答案

通过修改基本适配器包含多个级别上实现。

Implemented by modifying the base adapter to include multiple levels.