04-04 14:49:53.125: E/AndroidRuntime(18323): java.lang.IllegalStateException: Could not find a method setRepeat(View) in the activity class com.mine.myalerm.MainActivity for onClick handler on view class android.widget.RelativeLayout with id 'rl_repeat_layout'
以上这是logcat
Java文件
private void setRepeat(View view) {
// TODO Auto-generated method stub
show("重复");
}
xml文件
<RelativeLayout
android:id="@+id/rl_repeat_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="true"
android:onClick="setRepeat"
android:padding="5dp" >