i want to change the Text Alignment on the titlebar, but if i access the title bar before the dialog is showing then an error occurs:
B4X:
java.lang.RuntimeException: Object should first be initialized (B4XView).
How can i modify it without showing the dialog?
B4X:
dialog.Initialize(Activity)
dialog.TitleBarColor = Layouts.xui.Color_ARGB(255,28, 32, 35) 'this works
dialog.TitleBar.SetTextAlignment("CENTER","LEFT")'error
Wait For (dialog.ShowCustom(tmp_background, "Hochladen", "", "Abbrechen")) Complete (Result As Int)
If Result = Layouts.xui.DialogResponse_Positive Then
End If