如何在黑莓手机中创建类似选项卡布局的iphone [英] how to create iphone like tabs layout in blackberry

查看:113
本文介绍了如何在黑莓手机中创建类似选项卡布局的iphone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何为所有类型的黑莓设备(滚动条/触摸屏)在黑莓Java应用程序中创建类似选项卡布局的iphone.是否有其他方法可以达到这种效果?你能以这种方式建议我吗?

How can i create iphone like tabs layout in a blackberry java application for all types of blackberry devices(scrollpad/touch screen). Are there any alternatives to achieve that effect? could you please suggest me in that way?

谢谢,
静脉

推荐答案

嗨 我必须在黑莓手机上创建标签页,为此,我尝试了一种可以满足我的要求的自定义方式.也许您可以使用和自定义此想法.

Hi I had to create tabs in blackberry so for this this i tried a custom way which fulfilled my requirement.May be u can use and customize this idea.

1)在类中创建方法 addTab(),然后在其中放置5个位图字段(组件). 2)将这些组件放在水平字段管理器中 3) addTab()方法必须返回此管理器. 4)在该类中创建方法 result(),每当单击组件(位图字段)时都必须调用该方法.

1) create a method addTab() in a class and place say 5 bitmap fields(components) in that. 2) place these components in an horizontal field manager 3) addTab() method must return this manager. 4) create a method result() in that class that must be called whenever the components(Bitmap fields) are clicked.

现在在主班级中想要显示选项卡的任何位置: 1)为该类创建对象并执行

Now in your main class wherever you want to display the tabs: 1) create object for that class and do

add(obj.addTab());

或者您可以:

setStatus(obj.addTab());

根据您的要求

这篇关于如何在黑莓手机中创建类似选项卡布局的iphone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆