阅读背景:

Android:将列表视图项设置为“已选中”(突出显示)

来源:互联网 

In my application I want to do something similar to gmail app on tablets, in the left to have the list of items and in the right to have a fragment with the content of that item, like for gmail app this content is being downloaded after selection. After I click on an item I want it to remain highlighted until, of course I change the selection. I reached a point where this works but only if I click twice on the same item, so first I click, selection works and then the item goes back to its 'default' state and if I click again on it, the selector (for selected state) is visible.In my application I want to do something simila




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: