Android ListView duplicate rows




Asked on August 13, 2015
I am getting duplicate rows in my Android ListView. How to remove it?


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










©2024 concretepage.com | Privacy Policy | Contact Us