关于AlertDialog.Builder构造方法很奇怪的问题?
ihrthk 博客专家认证 2012-06-05 11:04:26 AlertDialog.Builder adb = new AlertDialog.Builder(this, R.style.dialog);
构造方法AlertDialog.Builder(MoreActivity,int);未定义?
查了一下官方文档:
AlertDialog.Builder(Context context, int theme)
Constructor using a context and theme for this builder and the AlertDialog it creates.
又已知,Activity继承Context,那我传this,为什么不可以?