开发者

Android listview columns based on spinner's selection

another question of mine.

I have created a screen that consists of a Spinner and a Listview. The Spinner takes only 2 values an开发者_如何学Cd the Listview is populated accordingly to the Spinner's selection.The problem is that I want the Listview to have 2 or 3 columns (based on the Spinners selection), how can i achieve that?

Or to say it in other words, is there a way to hide/show a column of a listview on the fly?

Thanks in advance


You could be to have a tablerow with 3 elements as a child of the listview.

Another option could be to use a gridview if you want columns instead of a listview, or a table maybe.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜