Android Question How to remove the animation from an XUI DateDialog?

vecino

Well-Known Member
Licensed User
Longtime User
Hi, I have tried with "Dialog.VisibleAnimationDuration=0" but it doesn't work.
I attach an example project.
Thank you.

 

Attachments

  • datedialog-example.zip
    11.1 KB · Views: 184

vecino

Well-Known Member
Licensed User
Longtime User
Hi, thanks, that's great and works perfectly, but... it doesn't work for me, on the screen there are several "label" and "edittext" that should show the "datedialog" when the user clicks on them.
Isn't there another solution?
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
It is a mistake not to switch to B4XPages.
Hello, because they are applications made years ago (since 2012, when there was no B4XPages) and are running on hundreds of customers. They need maintenance of what is there, make changes that customers ask for, add new features, etc. It is impossible (with my knowledge) to make new applications to replace those, it would take me years of work.
I will use B4XPages for the new ones I need to make.

Why are you creating the template each time? Create it once when the program starts.
Is there any way to create the dialog and leave it hidden until I need to use it?
Thank you.
 
Last edited:
Upvote 0

Mahares

Expert
Licensed User
Longtime User
Create it once when the app starts. You can show the dialog and template whenever you need.
Isn't that what I posted in post #2 or do you have something else in mind.
SetDateDialog is the template. It would appear every time he clicks his label or any other view he wants the template to appear
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
on the screen there are several "label" and "edittext" that should show the "datedialog" when the user clicks on them.
Here is attached a project that uses the same B4XDateTemplate for 2 labels and i button.
For Label1 click the date selected is the date registered.
For Label2 click when you select a date the date registered is 7 days more than the date selected.
For Button1 click when you select a date the date registered is 1 month more than the date selected
 

Attachments

  • B4XDateDialogforMultipleViews060321.zip
    11.2 KB · Views: 177
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Now I understand!!!!!
Sorry, I just still don't quite understand how the "XUI Views" work.
Thank you very much.
 
Upvote 0
Top