开发者

dynamic positioning of listview in android

I am trying to make a layout in android with 2 listviews where one is the main listview and another is the sublistview. When a user clicks on one of the items in the main list,the sublist will be populated with the list items corresponding to the main list item clicked.

While I am able to have two list view side by side, I am not able to positon the second list(sub开发者_如何转开发list) to the side of the selected item of the first list. Is there a way to dynamically position the second list based upon the first list item selection in android.?


I think you can use a Table Layout and position the two lists side by side. You can use the xml design file to place the list views and then in the code view you can dynamically populate the lists...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜