开发者

Listview's first item is always selected

I'm using a custom view to display items in a listview. For some reason eve开发者_如何学运维ry time the list is populated; the first item is shown as selected (ie; orange highlight). I've tried everything I can think about to solve it; any ideas?


I ended up having to request focus from the parent layout.


This would happen when you launch your Activity using the keyboard (you are thus in key mode, which causes the first focusable item to be focused.) How is that a bad thing?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜