【发布时间】:2015-10-09 14:10:20
【问题描述】:
如何更改样式对话框...例如更改背景等非常令人困惑
Dialog d = new Dialog();
d.setUIID("abc");
d.setDialogUIID("abc");
d.getContentPane().setUIID("myDialog");
Label popupOutfitSaved = new Label("There are no recent searches");
popupOutfitSaved.setUIID("DialogLabel");
d.setLayout(new BorderLayout());
d.addComponent(BorderLayout.CENTER, popupOutfitSaved);
d.setTransitionInAnimator(CommonTransitions.createFade(1000));
d.setTransitionOutAnimator(CommonTransitions.createFade(800));
d.getStyle().setOpacity(0);
d.getStyle().setBgColor(0xff0000); //why doesn't it work
d.setTimeout(5000);
d.showPopupDialog(c);
我也徒劳地改变了tintcolor
@Override
protected void beforeMain(Form f) {
f.setTintColor(0xccff99);
}
【问题讨论】:
标签: codenameone