07-20-2008, 09:41 AM
Knows Where the Search Button Is
Join Date: Jul 2008
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the reply. I implemented the following code and was able to successfully add the background image:
Bitmap backgroundBitmap = Bitmap.getBitmapResource("background.png");
HorizontalFieldManager horizontalFieldManager = new
HorizontalFieldManager(HorizontalFieldManager.USE_ ALL_WIDTH |
//Override the paint method to draw the background image.
public void paint(Graphics graphics)
//Draw the background image and then call super.paint
//to paint the rest of the screen.
graphics.drawBitmap(0, 0, graphics.getScreenWidth(), graphics.getScreenHeight(),
backgroundBitmap, 0, 0);
In the screen, I have ActiveAutoTextEditFieldcomponent. Initially, when the screen gets displayed, I can see the background image under the ActiveAutoTextEditField. But as I type into the ActiveAutoTextEditField, I get a white background within the Field.
I dont want background image to be shown on the ActiveAutoTextEditField, in the first place. I want it to have a white background as soon as the screen is launched.
Is ActiveAutoTextEditField transparent by default, because of which I face this problem?