Android Question xui views dialog problem ?

FrankDev

Active Member
Licensed User
Longtime User
Hello

Problems with the xui views dialogs.
I have on my activity a e.g. panel with elevation > 4
this is put over the xui view dialog.

it would be good if you could change the elevation in the 'background' of the dialogs.

regards
Frank
 

Attachments

  • xui_elevation_problem.jpg
    xui_elevation_problem.jpg
    255.3 KB · Views: 147

TILogistic

Expert
Licensed User
Longtime User
use:
Dialog.Base.Parent.As(Panel).Elevation = 8dip
sample:
B4X:
Sub btnSearch_Click
'    Wait For (Dialog.ShowTemplate(SearchTemplate, "", "", "CANCEL")) Complete (Result As Int)
    Dim rs As ResumableSub = Dialog.ShowTemplate(SearchTemplate, "", "", "CANCEL")
  
    #If B4a
    Dialog.Base.Parent.As(Panel).Elevation = 8dip
    #End If
  
    Wait For (rs) Complete (Result As Int)
  
    If Result = XUI.DialogResponse_Positive Then
        btnSearch.xLBL.Text = SearchTemplate.SelectedItem
    End If
End Sub
1642145112590.png
 
Last edited:
Upvote 0
Top