Create multiple layers BlackBerry application - blackberry

Do you know how to create a multiple layers BlackBerry applications
such as the Trapster, Poynt apps...
There will be a bottom layer displaying a map (users can interact with),
and upper layers containing buttons that user can click on.

There are two ways
use map field and add it with other controls on screen if you don't need to change data on map.
If you need to change data on map, like having markers override paint method. With some special cares.

Related

How to drag and drop an image between two images using DragTargetPanel on Vaadin 14

I need to be able to drag and drop an image between two images using a DropTargetPanel on Vaadin. Currently, it's only possible to move the image to the end, but not between two images. If I need to keep the image between two images, in this case, I need more steps to do that.
For a Grid component, for example, there is a method called "setDropMode" where is possible to set as "GridDropMode.BETWEEN". In this case, is possible to drag and drop a row between two rows. I would like to do the same for my images through DropTargetPanel.
Does anyone know how to do this?
Many thanks!

Change colorPrimary and colorAccent programmatically for use in ContextThemeWrapper

I'm working on a live event app for a client. There are about 20 view containers that make heavy use of colorPrimary and colorAccent for coloring the views.
The client has just now decided that those colors should be different for each event.
Is there any way for me to use ContextThemeWrapper to simply inject the colorAccent and colorPrimary received from the backend? That way, when I start EventActivity, I can just put in the correct colors, and those would propagate all the way down to the activity's View, Fragment, and Dialog children.
If that's not possible, I guess I will have to go through each View one by one in Java and set the appropriate colors. That's tedious but easy. What's not easy are my shapes defined in XML. For instance, I have a drawable that I use as a button background which is simply a 1dp stroke on a rectangle with rounded corners. The color of the stroke is colorAccent. How would I go about changing that at runtime?

Blackberry list field without canvas

Is it possible to create a customized list field in BB, where each row will have 4 different labels, and a bitmap field, without implementing the drawListRow method?
Since drawListRow uses canvas I want to avoid it. Because, I need to display a browser field in list row. Or is it possible to add label fields in list row?
You probably aren't going to be able to implement this the way you want - try putting more than one BrowserField on a screen at once and you'll soon run into multiple issues. I'd suggest creating a custom Field to act as a row instead, or try and get the desired look n feel using Field Managers.

Adding Vertical Field Manager in blackberry tree view

Hello I am new to Blackberry , Can any one tell me that how to add Vertical Field Manager in to Tree View?
TreeField is not designed for this. It is not a Manager, so you can't add any child fields to it. Similar to ListField the TreeField is a way to represent on UI a potentially large data structure without eating too much RAM (since in this case there is the only UI object - the TreeField).

What UI element might this be? (Custom tab-bar?)

http://www.flickr.com/photos/fraserspeirs/4329430635/in/set-72157623224262135/
The above is a link basically showing the form fill view of the numbers app on the iPad. Any idea as to how to achieve such a functionality which sort of looks like our vanilla tabs on Chrome?
You could do it with just buttons set to Custom type and using an image for the background. Then when they are clicked, bring the specific UIView to the front.
To create the tabs from a single image use UIImage's stretchableImageWithLeftCapWidth: topCapHeight:
http://tcninja.blogspot.com/2010/09/ios-adding-stretchable-uiimage-as.html
This will let you dynamically set the image's width in a way that will use the middle of it to fill the new area rather than stretching (and warping) the outer edges.
I would have implemented this with simple UIButtons. All you need to do is to style them (pngs or whatever), and track which one is the current.

Resources