I am working on adding a simple popUpScreen with a texual information when you hover over a CustomButton in BlackBerry. I have seen this already implemented in applications like Twitter, Facebbok and even in native BlackBerry pictures app and many other places.
To clarify, What i need is something like this -
a busy cat http://bit.ly/rh5gy7 [popupscreen as shown with a red circle]
But, I have not been able to create a PopUpScreen that is non-modal and non-ui-blocking.
That is, even when the popupscreen is being shown, I should be able to move focus on the screen that called the popUpScreen.
Can anyone tell me, perhaps with some code, as to how you can implement this!
Thanks for your help!
The above can be achieved by making use of ToolBarManager and adding ToolbarButtonField into it and then setting a string as tooltip which will act as a popupscreen as shown in the above picture. ToolBarManager is available only in OS 6.0 and abob
If you intend to use this feature in older OS versions of BlackBerry, here's is a nice tutorial with sample resource.
Thank you Ray Vahey for your help!
Related
I've been searching for a library or sample project that implements the following functionality, but unfortunately haven't been able to find much. Could anyone share any thoughts or point me in a general direction if experienced something similar?
I'd like create a pull-out view controller/tray whose interaction is very similar to the Google Maps iOS app (http://i.stack.imgur.com/l1QHt.png). When a user taps or pulls-up the snippet pane, the view expands until fully maximized. Essentially the same interaction as seen in the Maps app.
I'm happy to implement from-scratch if a library doesn't exist, but regardless wanted to seek any suggestions/insights before getting underway.
Thanks again for your help & advice!
Hi I have been working on a blackberry app and developed about 90% of the app .But my client wants the app should work on blackberry touch also. So I just wanted to know what changes I will need to do to convert the same code to work on blackberry touch .Please help me I am new to Blackberry app development .
Just to confirm, we are talking about a Java application running on BB7 or earlier OS.
The short answer is, it depends.
If you have used standard RIM controls (buttons, ObjectChoiceField etc.) then these will work on the touch screen with no change. If you have used your own controls, for example an image button, then these might not work very well - for example the button might not be big enough to be hit easily with a fat finger.
The other problem is the virtual keyboard, it may appear at points when you do not want it to and not appear when you do. Not a problem on a lot of phones, but remember there are at least 2 non keyboard phones out there, so the Virtual keyboard is the only option for typing.
The best approach is work through each of your screens and try them in the Simulator. Zoom the Simulator so that it looks like the real device. And pretend you are using a finger, don't rely on the mouse because you can position the mouse very accurately.
I would raise new questions about specific Fields that you have problems with, rather than continue this with any issues you find.
How do I create a tab bar like WhatsApp on BlackBerry in my BlackBerry app? I want that feature in BlackBerry OS 7.0. I have used managers -- HorizontalFieldManager and VerticalFieldManager -- to achieve it. But it doesn't look as attractive as WhatsApp. Can FieldTabController help me do this?
It's not going to look attractive if you are just making tweaks to the code, and then seeing what that looks like. You need to start with a design you find attractive. Once you have that goal put together as an image, you start writing code to make the UI look like the design image.
The WhatsApp tab bar is not a straightforward combination of built-in UI managers from RIM. It has a fair amount of customization - each tab has three visual states, and there is a tooltip that follows the focus, as well as a context tab on the right that changes depending on the currently selected main tab. This means there are several interacting UI components here, not just a single magic manager.
Essentially, you will probably want to start building your own custom Field objects.
Basically, subclass the Field class (or one of the other subclasses), and learn to love the paint(..) method and the Graphics API.
There does not seem to be a lot of information on the "Custom Map Field" features. I am adding Images to my custom MapField and would like to make those images clickable. If anyone is familiar with this please let me know and ill post my Code snippet , etc.
Thank you
There are two MapField classes in the API: the old net.rim.device.api.lbs.MapField, available since OS 4.5, and the newer net.rim.device.api.lbs.maps.ui.MapField, available from OS 6.0 onwards. For the newest one, the default action when an item is clicked is to show a dialog with info, but I think you could listen for clicks by setting a custom MapAction instance in the MapField. If not possible, then for both old and new mapfields you can override navigationClick and look for the nearest clickable item to the map center. This nearest neighbour lookup should be optimized in case you have a large number of clickable items (for instance, skipping all non visible elements). For touchscreen enabled devices, you can override touchEvent, retrieve the clicked position and do the same.
Actually both approaches are compatible.
The new iPhoto for iOS has a help overlay that includes controls that point at/describe the individual affordances.
Is this a standard control type that I don't know about, or something that has to be built by hand?
No these are private libraries. But I wish there would be a developer API for that.
I've also seen the help overlays in GarageBand for iOS.