如何在黑莓手机中创建类似选项卡布局的iphone

编程入门 行业动态 更新时间:2024-10-24 13:20:44
本文介绍了如何在黑莓手机中创建类似选项卡布局的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

本文发布于:2023-11-28 06:40:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641332.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:选项卡   布局   机中   类似   黑莓

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!