我在子类之外有一个自定义对话框类,它实现了ArrayAdapter
有没有一种方法可以notifyDataSetChanged()
从另一个类或膨胀视图中调用?
//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
}
}