blackberry - how to achieve this UI? -


this want:

desired ui

i had created top red layout this

public class custom_topfield extends verticalfieldmanager { private static final int field_height = 70;  private string _text;  custom_topfield(int color, string text) {     super(manager.no_vertical_scroll);     _text = text;      background background = backgroundfactory.createsolidbackground(color);     setbackground(background); }  protected void sublayout(int width, int height) {     width = math.min(width, getpreferredwidth());     height = math.min(height, getpreferredheight());     setextent(width, height); }  public int getpreferredheight() {     return field_height; }  public int getpreferredwidth() {     return display.getwidth(); }  public void paint(graphics graphics) {     int rectheight = getpreferredheight();     int rectwidth = getpreferredwidth();      font font = font.getdefault().derive(font.bold, 35);     graphics.setfont(font);     graphics.setcolor(color.white);     graphics.drawrect(0, 0, rectwidth, rectheight);     graphics.drawtext(_text, rectwidth * 4 / 9, 10);     super.paint(graphics); } 

}

what similar of textview in blackberry? labeltext?

use threee layout managers, 1 header red part on top,use second layout manager , add listfield in override listfield paint method row ....and use toolbarmanager below tab bar


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -