Android Question Modal UI in B4a

Tasyo28

Member
Licensed User
Hi,

Possible to achieve this in B4a? (see image)

-modal ui popup image
-insert qr code
-transparent background
-popup animation
-close button


Can somebody point me to right direction what i need to use to achieve this.

upload_2019-7-17_16-59-22.png


Thank you very much :)

Regards,
Tasyo
 
Last edited:

mcqueccu

Well-Known Member
Licensed User
Longtime User
Sure, its very possible and easy to do with B4A. Check out Custom Dialogs

You can also create it manually,

Add a panel
-Add your image as a background
-Use QR Generator to create your QRCode and place it on the panel
-Use a lable or another panel and insert the close icon image and position it well.
-Send this panel to back or make it invisible (To call it, make it visible or bring it to front) depending on the one you use.
 
Upvote 0

Tasyo28

Member
Licensed User
Sure, its very possible and easy to do with B4A. Check out Custom Dialogs

You can also create it manually,

Add a panel
-Add your image as a background
-Use QR Generator to create your QRCode and place it on the panel
-Use a lable or another panel and insert the close icon image and position it well.
-Send this panel to back or make it invisible (To call it, make it visible or bring it to front) depending on the one you use.
Thank you very much mcqueccu!
 
Upvote 0

Tasyo28

Member
Licensed User
B4XDialog is another option. Especially relevant if you are interested in cross platform solutions.

https://www.b4x.com/android/forum/t...ss-platform-views-and-dialogs.100836/#content
Hi Erel,

I tried your suggestion and works very well, but i have a question how to remove custom buttons in dialog (ok and cancel)
(i want it to be clean and plain panel with image and buttons only)
B4X:
Wait For (dialog.ShowCustom(p, "OK", "", "CANCEL")) Complete (Result As Int)
        If Result = xui.DialogResponse_Positive Then
            dialog.Show(fieldFirstName.Text & " " & fieldLastName.Text, "OK", "", "")
        Else
        End If

how to capture/listen to the buttons inside the panel i made using xui dialog?

Regards,
Tasyo
 
Upvote 0
Top