Android Question How to stop animation when lazy loading xCustomListView

bsnqt

Active Member
Licensed User
Longtime User
Hi Erel and All

Basically it is just a xcustomlistview simple project I have modified from the posts by:

1) Erel's: 2) Peter Simpson's:
My questions are:
1) how can I stop the animation of the listviewitems when they are loading (please see the project) in the xcustomlistview?
2) more generally, how I stop all animations of my app (for all views)?

I have already set the "Insert Animation Duration" property to 0.

 

Attachments

  • Stop App Animation.zip
    11.3 KB · Views: 150

Mahares

Expert
Licensed User
Longtime User
how can I stop the animation of the listviewitems when they are loading
I hardly noticed any animation. holdup even when I use:
B4X:
Pnl.SetLayoutAnimated(0, 0, 0, CustomListView1.AsView.Width, 60dip)
Try to run it in Release mode, maybe you will like it better. I did, super fast..
@bsnqt : You must be getting picky (of course I am kidding). If you are still not satisfied even in 'Release', please request in a post better help from someone else or Erel.
 
Upvote 0

bsnqt

Active Member
Licensed User
Longtime User

Thank you for your quick reply and help. I just wonder why you are always so quick ?

Haha, I am not picky at all . Actually I run my project always in Release mode. And as I set all animations to 0 in my test device's developer settings, I did not notice any animation at all until today when I tested my project with my friend's new phone (Galaxy Fold3), and he complains he feel dizzy with too strong animations of the app. They are really noticeable. So I want to cancel / stop all animations. My project is an educational one and quite dry and serious, so animation looks not really appropriate... I still think I need to stop the animation, unfortunately

Please see the screen record in attached.
 

Attachments

  • recording.zip
    302.8 KB · Views: 122
Upvote 0

bsnqt

Active Member
Licensed User
Longtime User
Hi Anand,

I set the "animation" property of the Activity in the "infoitem" layout to = 0. And it did work! My mistake was that I paid attention only to xCustomListview and the listviewitems (which are label) but not the activity. And now that solution can answer both of my questions. Thank you very much.

Sad, I need to go back to learn more basics of B4A especially Designer or need to be more careful next time
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…