Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
lakshmanan
Posts: 143
Registered: ‎05-04-2011
My Carrier: app development

Regarding picture background button field

hello friends,

                 this is my coding....

public ResultScreen()

{

 

 

private Bitmap a = Bitmap.getBitmapResource("btn-sml.png");
 private Bitmap b = Bitmap.getBitmapResource("btn-long.png");

 

 

VerticalFieldManager _manager = (VerticalFieldManager)getMainManager();

 

Bitmap backgroundBitmap = Bitmap.getBitmapResource("2_3.png");

 Background bg=BackgroundFactory.createBitmapBackground(backgroundBitmap,Display.getHeight(),Display.getWidth(),1);

   

_manager.setBackground(bg);


VerticalFieldManager v3=new VerticalFieldManager(Field.FIELD_HCENTER|Field.FIELD_VCENTER);

 

 

PictureBackgroundButtonField sampl=new PictureBackgroundButtonField(a,b,Field.FOCUSABLE);

sampl.setChangeListener(new FieldChangeListener() { public void fieldChanged(Field field, int context) {UiApplication ui = UiApplication.getUiApplication();ui.pushScreen(new ResultScreen2());}});

 v3.add(sampl);

 

_manager.add(v3);

 

 

 

 

 Now i want to add textfield and icon over this picture background button field.... is it possible... can anyone help me to solve this.... also is it possible to add fieldmanager over the picture background button field.......

Please use plain text.
Developer
agungeddy
Posts: 164
Registered: ‎08-26-2010

Re: Regarding picture background button field

seems it's a java development,
if so, you should ask in this forum:
http://supportforums.blackberry.com/t5/Java-Development/bd-p/java_dev
Please use plain text.