BlackBerry to Code Home Screen As described below

♀尐吖头ヾ 提交于 2019-12-12 02:37:01

问题


Hi Guys please see this is the Home screen i want to make in blackberry, i have tried putting in the vertical and horizontal field manager but i cant embed all together which give me result screen as mentioned above.. Please note the button are the Image button i have provided.. i want the structure code if any one can help me out ..

Vertical Manager(main)
Horizontal Manager (for Two Buttons)
horizontal Manager (for Three Buttons)
Bitmap Field (for Image)
Add all three in Vertical Manager
and Vertical Manager to the Screen 

i have tried Structure something like this:

Thanks in advance!!


回答1:


I do not recommend using a series of Managers as you are trying to do. Instead create a Manager that actually lays out the Fields tjhat you want, in the place that you want them. Coded correctly you can use one Manager and have that Manager cope with the vagaries of the various size BlackBerry screens to make sure it looks OK regardless of the device your user has. You can also factor in the size of the Buttons, which must be larger for touch screen devices, and more easily manage focus movement on track pad devices.

Yes, there is a bit of learning involved, but for me, the result will be better than trying to manage a series of VFMs and HFMs.

To understand how to do this, I recommend reviewing the following:

  • http://supportforums.blackberry.com/t5/Java-Development/Create-a-custom-layout-manager-for-a-screen/ta-p/442990
  • http://supportforums.blackberry.com/t5/Java-Development/How-to-Extend-Manager/ta-p/446749

and also

  • http://supportforums.blackberry.com/t5/Java-Development/MainScreen-explained/ta-p/606644

Note particularly the requirements in MainScreen to ensure that your Manager is told the real estate size that it has available.




回答2:


i have finally got the answer to my screen.

i have used the Grid Manager to make the fields display in order i wanted and i have used the Image button Custom to make it result up-to the mark..

thanks guys for all your support and help..



来源:https://stackoverflow.com/questions/18846909/blackberry-to-code-home-screen-as-described-below

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!