To refine my question, I was able to change almost everything..
to get a uniform tint in the dialog you have to change the panel's color, obviously ("panel" is the one declared in Dialog_Ready method)
you have also to change the background of the area behind the buttons. to do so you can access that area as a view
Code:
Dim btn As Button
btn = dialog.GetButton(DialogResponse.CANCEL)
If btn.IsInitialized Then
Dim pnlButtons As B4XView = btn.parent
End If
pnlButtons is the view behind the dialog buttons. Now you can change the color as well.
The dialog buttons appereances can be changed of course by getting them with the BetButton method
However, there are two things i still haven't figured out how to do:
- how to change the
height of the buttons and of pnlButtons
- how to get to the root of the dialog view so i can
a)change the borders, make rounded borders (applying a background to panel or pnlButtons will result in a partial rounded background, not the whole dialog)
b)make the dialog, for example, semi-transparent. could be interesting for something else i have in mind which i could do with dialogs instead of popup panels, which i'll definetly do with iCustomDialog with iOS
if anybody can help me
EDIT:
Ok, i don't know why it didn't show before, but i can actually change the buttons width and height.
I think the view behind (pnlButtons) is actually a scroll view (edit: No, it isn't), as scrolling is enabled if the height of the cancel button is smaller than the height of the other buttons. It seems it uses the cancel button's height to set its height.
I still can't access the panel behind..
EDIT2:
Almost... There...
I still can't figure out how to change the dialog view borders, nor how to change the pnlButtons height, so that i can have the same distance from bottom as it is from the sides.
I tried casting pnlButtons as a scrollView but i get this error
Code:
java.lang.ClassCastException: com.android.internal.widget.ButtonBarLayout cannot be cast to android.widget.ScrollView
ButtonBarLayout?
Anyway, i kept referencing to parents over parents, i tried going back 5 levels hoping to find the main view or at least a null reference exception but nothing. (tested by changing the colors to different colors and then backwards to transparent.)