Screendesign
I want to make a screen like this:
I'm trying this way:
public class PantallaModelo extends MainScreen implements FieldChangeListener { private HorizontalFieldManager horizontalGrande; private HorizontalFieldManager filaLogo; private HorizontalFieldManager filaMenu; private VerticalFieldManager vertical; private Bitmap backgroundBitmap; private Bitmap bitmapLogo; private Bitmap bitmapHome; private Bitmap bitmapAsesor; private Bitmap bitmapCliente; private Bitmap bitmapMensajes; private Bitmap bitmapFavoritos; private Bitmap bitmapOpciones; private Bitmap bitmapExit; private BitmapField bitmapFieldHome; private BitmapField bitmapFieldAsesor; private BitmapField bitmapFieldCliente; private BitmapField bitmapFieldMensajes; private BitmapField bitmapFieldFavoritos; private BitmapField bitmapFieldOpciones; private BitmapField bitmapFieldExit; public PantallaModelo() { super(Manager.NO_VERTICAL_SCROLL); backgroundBitmap = Bitmap.getBitmapResource("background.jpg"); horizontalGrande = new HorizontalFieldManager(HorizontalFieldManager.USE_ALL_WIDTH | HorizontalFieldManager.USE_ALL_HEIGHT ){ public void paint(Graphics graphics) { graphics.drawBitmap(0, 0, Display.getWidth(), Display.getHeight(), backgroundBitmap, 0, 0); super.paint(graphics); } }; vertical = new VerticalFieldManager(Manager.USE_ALL_WIDTH ); bitmapLogo = Bitmap.getBitmapResource("banner_top_logon.jpg"); filaLogo = new HorizontalFieldManager(HorizontalFieldManager.FIELD_HCENTER ){ public void paint(Graphics graphics) { graphics.drawBitmap(0, 0, Display.getWidth(), (Display.getHeight()/5), bitmapLogo, 0, 0); super.paint(graphics); } }; filaMenu = new HorizontalFieldManager(HorizontalFieldManager.FIELD_HCENTER ); bitmapHome = Bitmap.getBitmapResource("button_home.jpg"); bitmapAsesor = Bitmap.getBitmapResource("button_asesor.jpg"); bitmapCliente = Bitmap.getBitmapResource("button_clt.jpg"); bitmapMensajes = Bitmap.getBitmapResource("button_mail.jpg"); bitmapFavoritos = Bitmap.getBitmapResource("button_favorites.jpg"); bitmapOpciones = Bitmap.getBitmapResource("button_options.jpg"); bitmapExit = Bitmap.getBitmapResource("button_exit.jpg"); bitmapFieldHome = new BitmapField(bitmapHome); bitmapFieldAsesor = new BitmapField(bitmapAsesor); bitmapFieldCliente = new BitmapField(bitmapCliente); bitmapFieldMensajes = new BitmapField(bitmapMensajes); bitmapFieldFavoritos = new BitmapField(bitmapFavoritos); bitmapFieldOpciones = new BitmapField(bitmapOpciones); bitmapFieldExit = new BitmapField(bitmapExit); filaMenu.add(bitmapFieldHome); filaMenu.add(bitmapFieldAsesor); filaMenu.add(bitmapFieldCliente); filaMenu.add(bitmapFieldMensajes); filaMenu.add(bitmapFieldFavoritos); filaMenu.add(bitmapFieldOpciones); filaMenu.add(bitmapFieldExit); vertical.add(filaLogo); vertical.add(filaMenu); horizontalGrande.add(vertical); this.add(horizontalGrande); } }
But it does seem that something like this:
It does not seem the image of the Logo (filaLogo or BitmapLogo)...
I added a bitmapField with MyLogoImage bitmap to filaLogo and set filaLogo as a banner, it seems now.
Tags: BlackBerry Developers
Similar Questions
-
Let's say you have a modal screen 'create the new document '. In iOS, you would have a bar at the top with on the left, in the middle of the title and to the right a button create a Cancel button. The two buttons pop the current page of the stack view. Other actions would be placed in a toolbar at the bottom. These actions don't pop the current view. This distinction is visually clear.
I realized that, in the Cascades, the idea is to have all the buttons at the bottom, near the thumb. So, all those buttons do not go on the lower bar? Or should I use this bar only for non-popping action and place who pop in a container just above actions? What is the best way to do this?
User Interface guidelines give a decent overview of the infrastructure.
http://docs.BlackBerry.com/en/developers/deliverables/41577/menus.jsp
Action items glow at the bottom of the screen with Infinity on the right side. Menu popup is usefult too.
Hope that helps you move forward.
Graham
-
The HPSA <; other >; welcome screen button is grayed out
HPSA red scream a taskbar icon marks the required symbol indication action.
When I run HPSA following the Welcome screen is dimmed - so I can't enter appropriate HPSA.
HPSA worked fine up until today.
Thanks for trying.
The solution was more simple. The next button is active only if all the questions are answered.
Novice or bad user Screendesign?
Now to find how to close this thread.
-
Several screens custom Explorer of the CMDB
Hi all, has anyone at - he added more than one Explorer CMDB custom option?
The first clicked point custom Explorer seems to get cached, so clicking on the second element still navigates to the first element. If I empty the cache I can click on the second item, but then of course it becomes cached... To replicate:
InCMDBCustomTemplate.htm (uncustomised); and
InCMDBCustomTemplate2.htm (copied from above, with just the title and the title changed.
InCMDBCustom.js:
Added e.UnfreezeTree (); at the end of the Load() function in other Explorer only are displayed to all InCMDBCustomTemplate.htm and InCMDBCustomTemplate2.htm :(
InCMDBExplorer.htm:
| Data | Data | Data | A: NOTHING | A:
Data | CustomTemplate1 | Custom 1 | Custom | A: BTN_ITEM1 | A:
Data | CustomTemplate2 | Custom 2 | Custom | A: BTN_ITEM2 | A:InCMDB.js:
within the service explore (s)
else if (s == "BTN_ITEM1") CustomPage (s);
else if (s == "BTN_ITEM2") CustomPage (s);//
function CustomPage (s)
{
If (presented == true) return false;
If (s == "BTN_ITEM1") {}
If (CheckSubmit (s) == false) return false;
Main.AppendAction ("BTN_CUSTOM = Y & CustomPageKey = model & CustomPageData = N", true);
}
If (s == "BTN_ITEM2") {}
If (CheckSubmit (s) == false) return false;
Main.AppendAction ("BTN_CUSTOM = Y & CustomPageKey = Template2 & CustomPageData = N", true);
}}
Thanks in advance!
Al.
Hi Al,.
Indeed, it seems that the system processes a custom page of CMDB as the same and does not update the cache when reloading.
But can I ask you what you want to achieve?
If you want just a few additional screens customized for item CMDB, I suggest to use "Service Desk forms" instead.
Then you have not any customization except Screendesign form in the designer. And you can have as many forms as you want.
Note: Forms must be enabled in Admin-> system-> Control Panel.
Best regards, Gytis
-
Hello!
I think that there is a behavior that does not really work as it is supposed to and must be settled sooner or later:
If you press the shortcut to 'create a new guide', you are able to type a pixel coordinate to place the guide. Right? Right.
If you create 2 work plans, each artboard seems to come with its own coordinate system, which is crucial for the screendesign projects. BUT hitting the create a new shortcut guide always made reference to a coordinate system worldwide.
So if I'm creating a new guide in the mobile view of my design and you want to be placed in the abscissa 20px in the work plan, it created on the 20th coordinate x of the first plan of work in place that, in projects with several work plans, can never make any sense It can?
It is not yet as it is placed in the global coordinate system, which would at least sort of sense to me, since it would mean simply that creating new guides ignores all plan details of work at all. But he sticks to the coordinates of the first of the work plans and does not take into account the artboard that you are currently working.
So the only thing I wish here is that create new guides understand what work plan is currently active.
Cheers, Val
I'll see if I can post your request, as the guides should make it as your desire. It is essential to being able to put guides down with the precision of the dialog box.
Maybe you are looking for
-
It's anything but she jumped two times to just return to this page to two pages. I click the X and he left, but returned to the next Web page request.
-
[Z510] Problems with the battery not charging
I have ideapad z510 for almost a year. and now my unit still shows that it is at 0% battery. and she indicates that she battery level does not increase. and for this reason I could not use my unit when it is not plugged. What should I do about it? Co
-
a pentium Dual-Core E2180 processor will work in a Pavilion a1102a desktop computer
An Intel Pentium Dual-Core E2180 processor will work if it is installed in a desktop Pavilion a1102n?
-
I have a sql 2005 with Service Pack 3 installed on a machine and on the second machine CA ARCserve backup software R16.5 installed and configured to use the SQL 2005 as its database, the backup and the restaurant's fines and thers one is work of migr
-
Problem started with the update KB979906 and error 0x66a code.
Completed all the missions entrusted by Lily Wang.