It would increase speed because you won't have to call findViewById() every time in getView method. Storing views in object called ViewHolder. To achieve some optimizations in structure that you've described in comment I would suggest: Look at this tutorial for further information. Then you inflate layout only if it's null and determine type using getItemViewType. GetItemViewType(int position) - returns information which layout type you should use based on position GetViewTypeCount() - this methods returns information how many types of rows do you have in your list Since you know how many types of layout you would have - it's possible to use those methods.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |