Android Question Help with some B4XDialogs problems ?

ivan.tellez

Active Member
Licensed User
Longtime User
I am doing a rewrite of an app with Pages. One of the thigs is to convert Dialogs and so far B4XDialogs look some what broken :-|

I followed the steps here to use a custom color for the https://www.b4x.com/android/forum/threads/theme-colors.87716/

But found some problems, The menu has White Text over a White Backgroud, the Work around found is to Changing the theme from Theme.Material.Light to Theme.Material.Light.DarkActionBar

Then, the first problem with XUI.MsgboxAsync, the Title and Text are white, Work around sugested in the forum, "use a B4xDialog" ... Problem with that, It uses a DARK theme, even when in the forum is sugested to Make sure to use a Light theme, Both Theme.Material.Light to Theme.Material.Light.DarkActionBar, show a DARK B4xDialog.

Work around 2 sugested: Manually change all the colors to make it light https://www.b4x.com/android/forum/t...-searchtemplate-xui-views.107470/#post-671944

So, what are themes for? Well, even then, using the BlurBackground = True it CHANGES the app root background to a DARK color one while the dialog is on screen. Work around 2 sugested, well, ignore themes and change all the backgrounds to white... Fine, it works...


But...

If I have a view on the app that has an elevation = 6 in the designer, this view will be OVER the B4XDialog.

1. How to put the dialog over all the elevated views?

The blured background of the dialog does not cover the ActionBar,

2. Is there a way to cover it? or the only way is to use a ToolBar with appcompat?

Thanks
 

ivan.tellez

Active Member
Licensed User
Longtime User
1. Try this:
B4X:
Dim sf As Object = Dialog.Show(...)
Dialog.Base.Parent.As(Panel).Elevation = 10dip
Wait For (sf) Complete (Result As Int)

2. It is not possible to blur the action bar.

1. It worked

2. It is a shame, using the ap compat was possible.

thankls
 
Upvote 0
Top