techknight Well-Known Member Licensed User Longtime User Apr 21, 2020 #1 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: Apr 21, 2020
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?
techknight Well-Known Member Licensed User Longtime User Apr 21, 2020 #2 I found this: [Solved] Change color of the CustomLayoutDialog I see this code to change color and text size of the button in Custom layout dialog: https://www.b4x.com/android/forum/threads/custom-layout-dialog-properties.85410/#post-541103 Is possible to change the color of Dialog itself to blue, red or other? Thanks in advance for any tip. www.b4x.com 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
I found this: [Solved] Change color of the CustomLayoutDialog I see this code to change color and text size of the button in Custom layout dialog: https://www.b4x.com/android/forum/threads/custom-layout-dialog-properties.85410/#post-541103 Is possible to change the color of Dialog itself to blue, red or other? Thanks in advance for any tip. www.b4x.com Seems to have solved my issue. but I need to figure out how to get another dialog to pop up over this one.
M Mahares Expert Licensed User Longtime User Apr 21, 2020 #3 techknight said: I found this: Click to expand... 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: Code: Copy 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
techknight said: I found this: Click to expand... 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: Code: Copy 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)
Erel B4X founder Staff member Licensed User Longtime User Apr 22, 2020 #4 Better to use B4XDialog. Cross platform, works better and fully customizable. Upvote 0