Skip to content

mattcapelli/Multiple-Layout-ListView

 
 

Repository files navigation

Multiple Layout ListView For Android

Developed by @LeonardoCardoso.

This is an app to show how to use multiple layouts on Android.

Basically, you have to follow these steps:

  1. Create the custom layous;
  2. Create a custom adapter;
  3. Override getViewTypeCount() method in your custom adapter with the amount of layouts you're gonna use in your listview;
  4. Override getItemViewType(int position) method also in your custom adapter to return the current item's view type;
  5. Additionally, it's essential to use a view holder to avoid memory leaks.

For more details, visit http://android.leocardz.com/multiple-layout-listview/

Normal

About

Multiple Layout ListView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%