摘要:
不能直接用findViewById的方法,因为findViewById只能查找这个布局下面的Id,而自定义的对话框不在这个布局下面,所以要获取自定义的布局再用findViewById。android.content.DialogInterface.OnClickListener ls = new android.content.DialogInterface.OnClickListener(){LayoutInflater dialogInflater=LayoutInflater.from(OptionsToDo.this);View layout = dialogInflater.infl 阅读全文