Android Question Change color of the CustomLayoutDialog

cenyu

Active Member
Licensed User
Longtime User
Just one question. Is there a simple way like:
B4X:
Dim sf As Object = DetailsDialog.ShowAsync("Enter details", "Ok", "Cancel", "", LoadBitmap(File.DirAssets, "form.png"), True)
Dim jo As JavaObject = sf
Dim cd As ColorDrawable
cd.Initialize2(Colors.Red, 4dip, 4dip, Colors.Yellow)
jo.RunMethodJO("getWindow", Null).RunMethod("setBackgroundDrawable", Array(cd))

But instead setBackgroundDrawable - use SetTitleColor?

This is becouse i have to change title color not background color
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…