黑莓的PopupScreen怎么重写可以漂亮?
有没有人能去掉黑色边框的?
我重写了paint方法,不过外面的边框就是去不掉,还是黑色的...
有没有更好的办法?
[解决办法]
忘了加链接了
http://doll.iteye.com/blog/588502
[解决办法]
setBackground(BackgroundFactory.createSolidTransparentBackground(
Color.BLACK, 200));
absDelegate.setBackground(BackgroundFactory
.createSolidTransparentBackground(Color.BLACK, 0));
Border border = BorderFactory.createRoundedBorder(new XYEdges(),
Border.STYLE_DASHED);
setBorder(border);
BitmapField dialogBackground = null;
if (background != null) {
dialogBackground = new BitmapField(background);
this.addField(dialogBackground, bgPosX, bgPosY, false);
}
这里把popScreen背景设为透明,然后加自己的背景图片