【问题】报错为什么语法错误.............multiple............(其在重写onClick()方法前出现一个红叉!)
【代码为】
package org.game.sudoku;
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class MySudokuActivity extends Activity implements OnClickListener{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button continueButton=(Button)findViewById(R.id.continue_button);
continueButton.setOnClickListener(this);
Button newGameButton=(Button)findViewById(R.id.new_game_button);
newGameButton.setOnClickListener(this);
Button aboutButton=(Button)findViewById(R.id.about_button);
aboutButton.setOnClickListener(this);
Button exitButton=(Button)findViewById(R.id.exit_button);
exitButton.setOnClickListener(this);
public void onClick(View v){
..................................
}
}
}
【!!!】希望各位大鸟说的详细些,非常感谢!