Problem with bitmapfield - touch event not working
Please Login to Remove!
Hi all,
I have added custom edit field and bitmapfield to horizontal field manager.
If I type some text in edit field, gave me some suggestions, while selecting it, that text assigned to editfield.But while touching bitmapfield some popup appeared in editfield instead of bitmap gaining focus. need help in solving this issue.It's working fine in nontouch devices,.
Attached screenshot for reference
My code follows.
searchiconContainer=new HorizontalFieldManager(){
};
searchiconContainer.setPadding(4, 0, 2, 2);
space=new SpaceField(5,0);
searchiconContainer.add(space);
searchiconContainer.add(goBmp);
space=new SpaceField(5,0);
searchiconContainer.add(space);
textBoxContainer = new VerticalFieldManager(VerticalFieldManager.FIELD_VC ENTER) {
protected void paintBackground(Graphics graphics) {
graphics.setColor(Color.WHITE);
graphics.setBackgroundColor(0x00ECEBEB);
graphics.clear();
super.paint(graphics);
}
public void paint(Graphics g) {
super.paint(g);
g.setColor(0x00ff8c00);
g.drawRoundRect(0, 1, 272, 27, 10, 10);
}
};
SearchIn = new TextBoxField(272, 27);
SearchIn.setFont(Utility.getInstance().getGujarati Font("rekha", 5));
space=new SpaceField(0,4);
textBoxContainer.add(space);
textBoxContainer.add(SearchIn); // Custom EditField
space=new SpaceField(0,4);
textBoxContainer.add(space);
searchiconContainer.add(textBoxContainer);
space=new SpaceField(6,0);
searchiconContainer.add(space);
searchiconContainer.add(searchBmp); // BitmapField
pls guide
Thanks in advance
Saranya
|