开发者

doubt in list view

开发者 https://www.devze.com 2023-01-19 14:23 出处:网络
I have 2 lists, one on the left of the screen, the other list, on the right of the screen which gets dynamically populated based on the selected item on left list.

I have 2 lists, one on the left of the screen, the other list, on the right of the screen which gets dynamically populated based on the selected item on left list.

I move to the right list by pressing "Right" key from the left list.

Issue: W开发者_运维知识库henever I press right key from left list, the item that is currently selected is the item of the right list that is currently aligned with the left item. I dont want this to happen. I always want my 1st item of the right list to be selected. Can anyone help how to go about this?


Hmm, I don't know if it will work for ListItems. But with Buttons, there is an attirbute to set where the focus must go to! Eg: nextFocusRight

However, in these, the View Id must be specified, i.e the id of the view to which the focus must be passed. So am not very sure if it maybe useful with ListView items.

link text

0

精彩评论

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