开发者

How to set Rounded Border for Blackberry BitmapField

I trying to set rounded border for Blackberry Bitmap field.Bu开发者_Go百科t it is not working for me. I overriding paint method of Bitmap field.

g.drawRoundRect(0,0,HomeScreenIcons.barcode.getWidth(),HomeScreenIcons.barcode.getHeight(), 10, 10);

How can i set Border for Bitmap field in Blackberry.


You can give a try this way:

BitmapField bitf = new BitmapField();
bitf.setBorder(BorderFactory.createRoundedBorder(new XYEdges(6,6,6,6)));

Hope this helps...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜