It seems strange but I don;t know how to do it
I did try the following
B4X:
Dim DetailsDialog As CustomLayoutDialog
Dim txt As CSBuilder
txt.Initialize.Size(20).Color(Colors.Red).Append($"Input password ..."$).PopAll
Dim sf As Object = DetailsDialog.ShowAsync(txt, "Ok", "", "",Null, False)
DetailsDialog.SetSize(100%x, 220dip)
Wait For (sf) Dialog_Ready(pnl As Panel)
pnl.LoadLayout("password")'a simple layout file in my project
All is working except custom color/size etc???
My guess is that there's another way to format text after panel is loading, and not before.
it's an old project, but thank you for the tip. I think it was nicer if CustomLayoutDialog.ShowAsync would expect CharSequences but I get that this is not worth the trouble any more (only for older projects). Thank you aniway.