posted 15 years ago
I am writing my first Android application and need some help with Custom Views.
Right now I have a database that lists two columns and about 300 entries or so (which will continue to grow). In my code I have a class that uses a LayoutInflator to help re-use an .xml layout. Then, it creates an instance of this class for each data entry, and displays it.
I have run a few tests and have come to the conclusion that the large delay is when I am creating the instance of the objects, not querying or displaying them.
Is there a better way to do this? My app is working well, but the delay every time you open it is really a pain.
Also, my rows appear all at once. I noticed on many other apps that once one loads, it will display that, then the next, etc. How is this done?
Thank you in advance for any help you can give me!