Hardik Gajjar
Hardik Gajjar

Reputation: 5058

android:how to reload the listview in multiple selection time

Hi Friends I when i click the checkbox..i want to refresh the listview because when i check there are no effect in current view but when i scroll down that is perform so i want to reload the view so how can i reload the view in listview chckbox click event??

Upvotes: 0

Views: 333

Answers (2)

Mayank Sharma
Mayank Sharma

Reputation: 11

You can use

  cb.setOnClickListener(new OnClickListener() {
             public void onClick(View arg0) {
....

Where cb is a checkbox.

Within this listener you can refresh your list adapter, use lv.setAdapter, where lv is setAdapter.

You can also search refreshing a list adapter view you can search setadapter method. I hope that is what you want.

Upvotes: 1

Jazz
Jazz

Reputation:

u can use listmethod ie notifyDataSetChanged()

Upvotes: 1

Related Questions