开发者

How to disable a child item in a listview(make its color gray and unclickable)

in my application, there is a listview, and clicking each item of it leads to an operation.

but in some situation, som开发者_Go百科e operation can not be done.

how to disable a child item in a listview (make its color gray and unclickable)?


You should override isEnabled in your adapter. Just keep track of the items you want to disable and return the correct value for them.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜