08-05-2011, 12:12 AM
|
#1 (permalink)
|
| Knows Where the Search Button Is
Join Date: Jul 2011 Model: 8520 PIN: N/A Carrier: airtel
Posts: 17
Post Thanks: 1 Thanked 0 Times in 0 Posts
| setting background to verticalfieldmanager Please Login to Remove! Hi ,
I want to draw roundrect background and then need to add components to it.
I tried it by using following way.
VerticalFieldManager container = new VerticalFieldManager(){
protected void paintBackground(Graphics graphics) {
graphics.setBackgroundColor(0xffffffff);
final int arcSize = 15;
graphics.drawRoundRect(0, 0, getWidth(), getHeight(), arcSize, arcSize);
graphics.clear();
super.paint(graphics);
}
};
But I couldn't get roundrect. The result is normal rectangle.
Any idea pls share
Thanks,
Saranya |
| Offline
| |