別のクラスまたは膨張したビューから呼び出す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
}
}