Android Question [SOLVED] Dialog background color

stanks

Active Member
Licensed User
Longtime User
Hi

In designer i added one B4XComboBox and i set text color to black and background to lightgray (#FFD3D3D3). In code i set dialog background to lightgray too (Dialog.BackgroundColor = Colors.LightGray) and when i run app colors are different (at least on emulator...i didn't try it yet on real device)
1701327656400.png

When i set combo background as transparent everything is ok (ofc). Is that a bug/emu problem/something else/i am doing something wrong?

Thanks
 

PaulMeuris

Active Member
Licensed User
In the designer you have set the color of the B4XComboBox1 to lightgray in the layout for the dialog.
1701523573217.png

1701524105406.png

If you set the color of the activity in that same layout to the same color lightgray then the B4XCombobox has the same background color.
1701523916037.png
 

Attachments

  • 1701523616933.png
    1701523616933.png
    5.2 KB · Views: 71
  • 1701523773591.png
    1701523773591.png
    5.2 KB · Views: 74
Upvote 0

stanks

Active Member
Licensed User
Longtime User
Setting dialog background with

B4X:
Dialog.BackgroundColor = Colors.LightGray

will show diff in LightGray colors, but setting dialog background color with

B4X:
Dialog.BackgroundColor = Colors.RGB(211, 211, 211)

will not show any diff.

@Erel is that a BUG or?
 
Upvote 0
Top