已采纳回答 / lynhao
OnClickListener是个抽象类,里面写了很多个方法,例如你问的public void onClick(DialogInterface dialog, int which);实现这个方法,~so,懂了吧
2015-12-11
已采纳回答 / bingu
Button 有 android:text 属性,这个属性指定 Button 显示的字符。Button 有 android:src 属性,这个属性指定 Button 显示的图片。
2015-12-11
已采纳回答 / w彩色的影子
你确定是这个Intent intent = new Intent(MainActivity.this,SecondActivity.this);???你第二个参数写错了啊应该是SecondActivity.class吧
2015-12-10
最新回答 / ixiaoxi
对着你的工程 ,鼠标右键 --Build Path --- config build path --- Libraries 里面一定有某个jar包缺失或者是重复了,你添加进来即可修复。
2015-12-08
最新回答 / lynhao
楼上童鞋说的是对的,我还是建议手写代码而不是直接拉拽代码,另外如果需要可以下载android stuido可以在代码右侧看到界面就不用每次都要切换麻烦~加油
2015-12-08