简体   繁体   中英

Slow response of titanium app in android

I have developed an app for IOS and android with the last titanium version (4.4.0) but in android the click event for example needs a lot of time to responde and some times even a double click. Is there a solution for that?

Unless we see the code, it is very difficult to suggest. There are some guidelines which you can follow:

  1. When using tableview, provide the className property to improve performance.
  2. Do not use too many view loops (one view in another and so on) and try to keep it simple.
  3. Open the window once all the UI elements have been organized. This will render quickly compared to opening the window and then organizing the UI elements.
  4. If performing long actions (time consuming) better to show an activity indicator to the user, suggesting that the application is performing some action.

I think the community can also add more such guidelines.

In addition to soumya's points i am adding following

1.Never write event listeners for each row component in a window.Write one event listener then identify the originated event element by its property. 2.Apply lazy loading for images.(Load thumbnails in listing screens) 3.Always make null reference to used objects on window close

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM