开发者

Implementation of List Inside List

I've been trying to look for the right answer, but couldn't find something clear.

I have开发者_如何学JAVA a list of items, using custom ArrayAdapter. Now each Item has click listener. I want to add another list, so when someone clicks on one of the times, another list will pop up.

Now how should I implement the second list? should I combine it somehow in the current ArrayAdapter and it's wrapping Activity? Should I create a separate Custom adapter and activity for the second list?

I have also seen something about ViewSwitcher, is that the answer to this question?

Any ideas?

Thanks, ray.


Have you looked at ExpandableList?

YourAdapter implements ExpandableListAdapter 

I think this might be the behaviour you are looking for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜