I have a thousands of items in my array, and I want to display it in listview, what is the most optimized way to achieve this?
i. getView() function of customadapter which returns the view for each row, some times can be reused. Just check if it is not null, then re-use it.
ii. If you are accessing data from network or SQL table, make sure you use different thread to do it, to avoid over head on Main Thread.
iii. Use ViewHolder instead of using findViewById() to find different views while inflating the data in getView of custom adapter.
iv. Use predefined black color background for your list view, to avoid redrawing over head on android.