Posts Tagged ‘ui stuff’

Working with BlackBerry list fields – Tutorial

Posted October 13th, 2009 by
Summary

This tutorial will show you how to create non-trivial lists using ListField. I will create a sample program that allows you to create, remove, update, delete the contents of a list (that’s backed by a Vector). The list field contains rows of selectable list items. It allows you to display a list of items, and load this list of objects from an array or vector. When using a ListField you have to provide an implementation of the ListFieldCallback interface to perform drawing tasks. This callback constitutes the view and model (using MVC terminology). The controller is the ListField class.

Click here to read this tutorial...   |  

BlackBerry field borders and backgrounds – Tutorial

Posted October 12th, 2009 by
Summary

This tutorial will show you how to create field (component) backgrounds and borders (decoration). Each field can have a border and a background property. You can use the border to space out fields in your UI, and you can use them to add whitespace. The background allows you to set the background color property of your field and make it fit the look for your app.

Click here to read this tutorial...   |  

Creating a BlackBerry custom field – Tutorial

Posted October 10th, 2009 by
Summary

This tutorial will show you how to create a very simple custom field (component) using the RIM API. If you’re familiar with Swing, then this code will not be a surprise to you. There are some similarities between AWT/Swing and RIM UI API.

Click here to read this tutorial...   |  

Using the BlackBerry gauge field to display progress – Tutorial

Posted October 9th, 2009 by
Summary

This tutorial will show you how the use the gauge field to show progress in your apps. This is useful when your app is performing long running tasks that need to report feedback to the user. The gauge field is a horizontal component that can be used to display status or progress. It displays a percentage from 0 to 100 and you can set a label before it to display any progress/status messages. You can even overlay the label inside of the gauge field, so that it won’t be displayed before it, but inside of it (on top of the progress bar that’s drawn).

Click here to read this tutorial...   |  

Android LinearLayout Tutorial

Posted August 4th, 2008 by
Summary

This tutorial shows you how to use the LinearLayout container (using Java code, not XML markup), which is the simplest layout mechanism available on Android. If you’re familiar with Swing’s BoxLayout then you will have a good idea of what this container has to offer. Linear layouts are really simple… you can add components horizontally or vertically to a ‘bag’ or ‘box’.

Click here to read this tutorial...   |  

Android TableLayout Tutorial

Posted July 29th, 2008 by
Summary

This tutorial will show you how to use the TableLayout container, which is like an HTML table. The UI layout code is done in Java, not XML. A class (LayoutUtils) is provided to make it easier to attach layout params to View objects.

Click here to read this tutorial...   |  

Android Option and Context menu Tutorial

Posted July 16th, 2008 by
Summary

This tutorial will show you how to create options menu (hooks into the MENU button) and context menu (press and hold a component).

Click here to read this tutorial...   |  

Android XML View inflation Tutorial

Posted July 16th, 2008 by
Summary

This tutorial will show you how to instantiate or inflate a View from XML; this is useful for components that don’t provide a Java API to tweak with certain style attributes. The Button class is used as an example; you can only get certain styles to show up via XML that aren’t available via the Java API.

Click here to read this tutorial...   |