Android Question [SOLVED] CustomLayoutDialog transparency?

techknight

Well-Known Member
Licensed User
Longtime User
I am trying to do a semi-transparent custom layout dialog, I tried to set the DialogPanel background to ARGB of 0,0,0,0 but its not working.

I have a panel with all my controls already, and I am just loading and adding the view to the dialog panel. This works, but I have no semi-transparency, or transparency at all.

any ideas?
 
Last edited:

techknight

Well-Known Member
Licensed User
Longtime User
I found this:

Seems to have solved my issue. but I need to figure out how to get another dialog to pop up over this one.
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
I found this:
I am glad you found the answer using JavaObject in the link you showed, but you could have also done it by putting only one line of code after you load the panel layout like this:
B4X:
p.SetLayoutAnimated(0, 0, 0, 300dip, 400dip)
p.LoadLayout("MyDialog2")   
p.SetColorAndBorder(Colors.ARGB(0,0,0,0),4dip,Colors.Red,7dip)  '<---- this line
'p.SetColorAndBorder(Colors.blue,4dip,Colors.Red,7dip)
 
Upvote 0
Top