Android Question Class message box to test - Customize the entire message box.

zed

Active Member
Licensed User
Hi all
This is my first class.
I don't know if this is the right way to do it, but it works.

It's very easy to use.

In the layout you want to display the message box.

1. In the Designer, create a background panel (Parent panel). Set visible = False (popup).
Add a background image or color. This will be the background of the message box.
If you want images with rounded corners. Link

2. In parent panel.
Create 1 panel for each element (title - content - image - and 1 or 2 or 3 buttons) (All panel is children)
Place them where you want. An example layout can be found in the projects

3. In code.
Target = each elements create.

This is a beta version.

I've never created a class and I'm not an expert.
I'm just trying to create a class that will be useful to me later. And maybe others too.
If you think that's not right. Tell me what's wrong. Thanks
 

Attachments

  • z_messagebox.zip
    372.2 KB · Views: 129

Mahares

Expert
Licensed User
Longtime User
It looks really nice Zed. Did you have a chance to explore B4XDialog with custom Dialog, see screenshot. You probably can get something very similar to what your class does.
1686161987334.png
 
Upvote 0

zed

Active Member
Licensed User
I tried B4A Dialog, but couldn't customize everything.
I wanted to use the exact same design as my app. The image buttons, the font, and above all, the possibility of putting the elements in the place you want.
Maybe I didn't use B4XDialog correctly.
With this dialog it is possible to add as many items as you want. Add the code to the class
 
Upvote 0
Top