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

1PC Used Tested Samsung S19B300NW board #0571 YT
$37.59
1PC  Used  Tested  Samsung    S19B300NW     board    #0571  YT picture1PC Used Tested Samsung S22A330BW LS22A330BW board #0566 YT
$37.59
1PC  Used  Tested   Samsung  S22A330BW  LS22A330BW  board   #0566  YT pictureSAMSUNG SF-560 LASER FAX PRINTER
$119.99
SAMSUNG SF-560 LASER FAX PRINTER pictureToner Cartridge ML-1650D8 for Samsung ML-1650 ML-1650M ML-1651 NEW NIB
$29.95
Toner Cartridge ML-1650D8 for Samsung ML-1650 ML-1650M ML-1651 NEW NIB picture(3) Genuine Samsung CLT-W808 CLTW808 W808 Waste Container
$79.99
(3) Genuine Samsung CLT-W808 CLTW808  W808 Waste Container picture






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