dialog transparency in the emulator

27 views
Skip to first unread message

howud...@gmail.com

unread,
Jul 24, 2016, 9:08:53 PM7/24/16
to CodenameOne Discussions
the emulator shows the dialog as semi transparent which looks bizzare.  I even tried setting bgTransparency with:
     this.getDialogStyle().setBgTransparency(255);
    this.getContentPane().getStyle().setBgTransparency(255);





Here is a screenshot:


Shai Almog

unread,
Jul 25, 2016, 12:01:04 AM7/25/16
to CodenameOne Discussions, howud...@gmail.com
Try using an iOS 7 or newer simulator. This is an iOS 6 simulator.

howud...@gmail.com

unread,
Jul 25, 2016, 12:31:30 AM7/25/16
to CodenameOne Discussions, howud...@gmail.com
ok

howud...@gmail.com

unread,
Jul 25, 2016, 11:14:23 AM7/25/16
to CodenameOne Discussions, howud...@gmail.com
I still dont think it is working.  As a test I changed to using setBgColor()  I tried all three:
     this.getDialogStyle().setBgColor(0xFF0000);
    this.getStyle().setBgColor(0xFF0000);
    this.getContentPane().getStyle().setBgColor(0xFF0000);

And the result I get is:



On Sunday, July 24, 2016 at 9:01:04 PM UTC-7, Shai Almog wrote:

Shai Almog

unread,
Jul 26, 2016, 12:00:22 AM7/26/16
to CodenameOne Discussions, howud...@gmail.com
I don't understand the problem properly or what you expect to appear.
I'm guessing that you want the background to change?
This won't work since the background is an image border which takes precedence over other settings. You can set the border to an empty border to override that behavior.
Reply all
Reply to author
Forward
0 new messages