开发者

Setting Priorities on Buttons

I am trying to figure out how to set priorities on imagebutt开发者_运维技巧on. I want to have a layout with a bunch of Icon or buttons that can be selected either by touch, radio, or checked box. As these images are selected they are set on queue to be displayed in order of Precedence. (that is to be pre-determined). The images are displayed once the main action button is touched.

Any help will be greatly appreciated.

Thank you,


You can try the below mentioned one in layout xml...

android:nextFocusDown=<id of the next control to be focussed>
android:nextFocusLeft=<id of the previous control to be focussed>

Or set the listeners for tab in java. such as,

if (<current control>.isFocused()) <next control>.requestFocus();
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜