BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-21-2009, 01:19 AM   #1 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default how to allow BitmapFields to overlap each other when focused?

Please Login to Remove!

I have two bitmapFields placed side by side on a custom Field Manager (so sublayout method is used to draw these bitmapFields).
The requirement is i want one bitmapfield to overlap the other partially when it is focused.
I have overwritten the onFocus and onUnFocus of both the bitmapFields as below:
Code:
final Bitmap helpSelect = Bitmap.getBitmapResource(select);
final Bitmap helpUnSelect = Bitmap.getBitmapResource(unselect);
m_bfHelp = new BitmapField(helpUnSelect, Field.FOCUSABLE) {
	protected void onFocus(int direction) {
		super.onFocus(direction);
		setBitmap(helpSelect);
		m_lfSelectedMenu.setText(HELP);
	}

	protected void onUnfocus() {
		super.onUnfocus();
		setBitmap(helpUnSelect);
	}
};
Each BitmapField is created in pattern mentioned above. I need the focused image to be bigger than unfocused image, so focused icon looks bigger than others. But when the focus is on one image, the other unfocused image does not get overlapped, instead the highlighted image is drawn partially.
Can anyone suggest how to achieve overlapping of images?
Offline  
Closed Thread


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

CAL SYSTEMS 136 gpm Flash Pasteurizer - 15037
$145000.0
CAL SYSTEMS 136 gpm Flash Pasteurizer - 15037 pictureFlash Furniture BT-6181-FOOT-GG Football Task Chair...NEW
$52.19
Flash Furniture BT-6181-FOOT-GG Football Task Chair...NEW pictureFlash Furniture BT-1404-BN-GG Brown Leather Guest/Reception Chair with Bla...NEW
$79.48
Flash Furniture BT-1404-BN-GG Brown Leather Guest/Reception Chair with Bla...NEW pictureFlash Furniture BT-1404-WH-GG White Leather Guest/Reception Chair with Bla...NEW
$82.98
Flash Furniture BT-1404-WH-GG White Leather Guest/Reception Chair with Bla...NEW picture(1PCS) MX25L3206EM2I-12G IC FLASH SER 3V 32MB 86MHZ 8SOP 25L3206 MX25L3206
$1.73
(1PCS) MX25L3206EM2I-12G IC FLASH SER 3V 32MB 86MHZ 8SOP 25L3206 MX25L3206 picture






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