黑莓 TabScroll 和焦点问题
我是黑莓的新手,发现它非常困难,我正在研究 TabControl 示例。我已将选项卡更改为滚动。现在,当我滚动浏览选项卡时,焦点会发生变化,一旦焦点转移到另一个选项卡,就会显示该选项卡的数据。
我想让这些选项卡只能单击,尽管它们会滚动,但只能在单击时更改。
而且当我在选项卡中使用 UIApplication.getApplication.pushScreen(someScreen) 时,此 someScreen 出现在选项卡之外,而我只想在选项卡下方显示此屏幕。
请帮忙
I'm a newbe for Blackberry and finding it quite difficult, I'm working on the TabControl example. I have changed the tabs to scroll. Now when i scroll through tabs the focus changes and as soon as the focus shifts to the other tab, the data for that tab appears.
I want to make these tabs clickable only, though they shall scroll but should change only on click.
And also when i use UIApplication.getApplication.pushScreen(someScreen) in the tabs, this someScreen appears out of the tabs, whereas i want to show this screen below the tabs only.
please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须重写 onFocus(int) 才能在焦点移动时不执行任何操作。 (您可能需要也可能不需要覆盖 touchEvent 来处理实际的 CLICK 事件)。
您可以将屏幕推入不属于选项卡的选项卡中。如果您希望出现新内容,请尝试在屏幕内切换管理器。
You have to override onFocus(int) to not do anything when focus is moved. (You may or may not have to override touchEvent to handle an actual CLICK event).
You can push a screen into tabs that is not part of the tabs already. If you want something new to appear, try switching managers within the screen instead.