为什么我用ImageButton做点击事件会提示unfortunately,Demo has stopped
bt1 = (Button) findViewById(R.id.testBtn);
<ImageButton
android:id="@+id/testBtn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/button1"
android:layout_marginTop="39dp"
android:background="#f60"
android:src="@drawable/ic_launcher" />
ImageButton换成Button是好的,用ImageButton就报错,不是说两种按钮的功能是一样的吗?