Information/Android
명령어 및 사용법 모음
작마
2011. 6. 16. 00:54
(EditText) findViewById(R.id.tb_input); //특정개체를 찾아서 할당
findViewById(R.id.bt_ok).setOnClickListener(myButtonClick); //리스너할당
Integer.parseInt(edit.getText().toString()); //edit 객체의 값을 int형태로 변경 , 문자를 바로 숫자로 할당할수 없음
tResult.setText(s); // set Text to TextView
Button.OnClickListener myButtonClick = new OnClickListener() {
public void onClick(View v) {
//TODO
}
};