BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-21-2009, 10:22 AM   #1
newbie_bb
New Member
 
newbie_bb's Avatar
 
Join Date: Aug 2009
Model: 8300
PIN: N/A
Carrier: simulator
Posts: 9
Default cosmetic changes in tab implementation by Horizontal manager

Please Login to Remove!

Hi,

I made a tab using horizontalManager. I want To change the background and text color and font of tab on focus and also i have to out focus change the colors and font back to normal.

Also, i need to keep a data in cache which will tell me the last screen from which user is coming while going through various screens. How i can achieve it.

please let me know.

As i am new to mobile domain, if posible please show me some sample or code change.

Following is code sample

Code:
public class LandingScreen extends MainScreen
{
	//LabelField mostPopular = new LabelField("Most Popular",Field.FOCUSABLE|Field.FIELD_LEFT|Field.HIGHLIGHT_FOCUS);
	private LabelField mostPopular;
	private LabelField newlyAdded;
	private LabelField allCategories;
	private LabelField spacer1;
	private LabelField spacer2;
	public LandingScreen()
	{
		HorizontalFieldManager topTabManager = new HorizontalFieldManager(Manager.HORIZONTAL_SCROLL);
		mostPopular = new LabelField("Most Popular",LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
		newlyAdded = new LabelField("Newly Added",LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
		allCategories = new LabelField("All Categories",LabelField.FOCUSABLE | LabelField.HIGHLIGHT_SELECT);
		spacer1 = new LabelField(" | ", LabelField.NON_FOCUSABLE);
		spacer2 = new LabelField(" | ", LabelField.NON_FOCUSABLE);
		
				
		topTabManager.add(mostPopular);
		topTabManager.add(spacer1);
		topTabManager.add(newlyAdded);
		topTabManager.add(spacer2);
		topTabManager.add(allCategories);
		add(topTabManager);
	}
	
	public boolean onClose()
	{
		Dialog.alert("Goodbye!");
		//NewScreen pScreen = new NewScreen();
        //UiApplication.getUiApplication().pushScreen(pScreen);
		System.exit(0);
		return true;
	}
}
__________________

Thanks,
Regards,
Amber
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Utility Aluminum Trim Coil 24

Utility Aluminum Trim Coil 24" x 40-45 FT Long with Minor Scratches and Dents

$84.95



D4PE12029AA 6 Volt Ignition Coil Fits Ford/New Holland Tractor 600 700 800 picture

D4PE12029AA 6 Volt Ignition Coil Fits Ford/New Holland Tractor 600 700 800

$26.44



Allen Bradley Contactor, 100-C60*00, Series A, 230 Volt AC coil, 90 Amp, 3-pole picture

Allen Bradley Contactor, 100-C60*00, Series A, 230 Volt AC coil, 90 Amp, 3-pole

$299.00



1100-0541 6 Volt Ignition Coil for Ford Tractor 2N 8N 9N Front Mount 9N12024 picture

1100-0541 6 Volt Ignition Coil for Ford Tractor 2N 8N 9N Front Mount 9N12024

$27.36



100-C23EJ10 24VDC E COIL ALLEN BRADLEY  CONTACTOR picture

100-C23EJ10 24VDC E COIL ALLEN BRADLEY CONTACTOR

$85.49



Coil Cleaner for AC Unit (Gallon) | AC Coil Cleaner That is Non Foam Formula picture

Coil Cleaner for AC Unit (Gallon) | AC Coil Cleaner That is Non Foam Formula

$32.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.