Developed by @LeonardoCardoso.
This is an app to show how to use multiple layouts on Android.
Basically, you have to follow these steps:
- Create the custom layous;
- Create a custom adapter;
- Override getViewTypeCount() method in your custom adapter with the amount of layouts you're gonna use in your listview;
- Override getItemViewType(int position) method also in your custom adapter to return the current item's view type;
- Additionally, it's essential to use a view holder to avoid memory leaks.
For more details, visit http://android.leocardz.com/multiple-layout-listview/
