隐藏黑莓中的一个字段
我想在屏幕上切换两个字段,就像模拟选项卡屏幕一样。我尝试创建一个 HorizontalFieldManager 并用字段 A 填充它,然后切换 deleteAll() 和 add() 字段 B。然后重复以切换它们。 (由按钮触发)这可行,但在模拟器中执行此操作五次后会被锁定。我还没有在设备上尝试过。有没有更好的方法来做到这一点,或者这几乎是做类似事情的唯一方法?
I would like to toggle two Fields on a screen, like a simulated tab screen. I tried creating a HorizontalFieldManager and populating it with Field A, then to toggle deleteAll() and add() Field B. Then Repeat to switch them. (Triggered by a button) This works, but in the simulator is locks up after doing this five times. I haven't tried it on a device yet. Is there a better way to to this, or is this pretty much the only way to do something like that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来这篇支持文章涵盖了您想要做的事情: 创建选项卡式视图屏幕。不过我还没试过。
It sounds like what you want to do is covered by this support article: Create tabbed view screens. I haven't tried it though.