public void getScore(View view){ // edittextを取得 EditText myEditText = (EditText) findViewById(R.id.myEditText); // edittextの中身を取得 String myName = myEditText.getText().toString().trim(); // 中身を観て条件分岐 if (myName.equals("")){ // エラー処理 } else{ } }


ソフトウェアエンジニアの技術ブログ:Software engineer tech blog
随机应变 ABCD: Always Be Coding and … : хороший