Home  >  Forum  >  Android
Post New Query

Android ListView duplicate rows


joined on
August 12,2015
Asked on August 13,2015
I am getting duplicate rows in my Android ListView. How to remove it?
joined on
November 09,2013
Replied on August 13,2015

Check you code whether you have cleared the list before adding you data to list.  Do as follows.

    public void setYourBean(List<YourBean> data) {
        list.clear();
        list.addAll(data);
        notifyDataSetChanged();
    }

Write Answer









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us