次のコードで私を助けてください... Android アプリケーションを作成しようとしていますが、onCreate 内で関数を作成しようとするとコードでエラーが発生します.. 関数を作成する必要があるのは、ボタン、ラベル、およびテキストボックス....ここに私のコードがあります
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final EditText player = (EditText)findViewById(R.id.player);
final TextView plrlbl1 = (TextView)findViewById(R.id.textView1);
final ImageButton imageButton1 = (ImageButton)findViewById(R.id.imageButton1);
final ImageButton imageButton2 = (ImageButton)findViewById(R.id.imageButton2);
public void thisfunction()
{
}
}
oncreate内に関数を作成するのを手伝ってください...助けてください