【問題】報錯為什么語法錯誤.............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. */@Overridepublic 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){..................................}}}【?。?!】希望各位大鳥說的詳細些,非常感謝!
添加回答
舉報
0/150
提交
取消