03-03-2011 04:26 AM
I am using BB JDE 6.0
Simulator is also for the same (Blackberry Torch)
My device is Blackberry Torch
I have created a two verticalfieldmanager in my screen. (iVFM1, iVFM2)
I have set the background of iVFM1 as a bitmap background
i have set the background of iVFM2 as a solidtransparent background (with alpha value 180 , Color value - 0x111111), which is placed in the center of iVFM1.
I have added two button fields in iVFM2
Background MainBG = BackgroundFactory.createBitmapBackground(Bitmap.ge
tBitmapResource("DriveLinkBG.png")); Background ActBG = BackgroundFactory.createSolidTransparentBackground (0x111111,180); iVFM2 = new VerticalFieldManager(VerticalFieldManager.FIELD_HC ENTER | VerticalFieldManager.USE_ALL_WIDTH); iVFM2.setBackground(ActBG); iVFM1.setBackground(MainBG); iVFM1.add(iVFM2);
Note : Please find the attachments for the images
1) When i open my application. the iVFM2 has a solid background(no transparancy) with the two buttons (attachment : BeforeFocus.png).
2) when i select the first button the portion around the button becomes transparent (attachment : AfterFirstFocus.png)and
3) when i select the other button the portion around that button becomes transparent too(attachment : AfterSecondFocus.png) [adds with the portion that previously became transparent]
How to make the whole iVFM2 transparent when the screen is pushed
Solved! Go to Solution.
03-15-2011 07:42 AM
I have found the mistake.
I was using transparent background and a solid border. so the whole background was becoming solid.
Now i changed the border to transparent border by setting alpha value, and its working now.