not share view on listview android



If you want to stop the views to be share in Listview,
Just write the below code on your Adapter


@Override

        public int getViewTypeCount() {               

            return getCount();
        }

        @Override
        public int getItemViewType(int position) {

            return position;
        } 



but it decrease in UI performance, and not advisable to use this code on your next Andoid Project.

Good Luck, 

Comments