I have a custom Dialog class outside the subclass that implements the ArrayAdapter
is there a way i can call the notifyDataSetChanged()
from another class or an inflated view ?
//This is a Subclass
public class myClass extend ArrayAdapter{
myDialog.showPopDialog();
}
// another class
public class myDialog implements onClickListener{
public void showPopDialog(){
Button mybutton = (Button) findViewbyId(R.id.mybutton);
mybutton.setOnClickListener(this)
}
@Override
public void onClick(View v) {
// I want to call notifyDataSetChanged() from here
}
}