[안드로이드] 2. Buttons
·
Flutter/Android
Button 사용자가 버튼을 누를 때 발생하는 동작을 전달하는 텍스트 또는 아이콘 (또는 텍스트와 아이콘 모두)으로 구성 Button XML Button Event 1. android:onClick ( recommended ) /** Called when the user touches the button */ public void sendMessage(View view) { // Do something in response to button click } 2. OnClickListener Button button = (Button) findViewById(R.id.button_send); button.setOnClickListener(new View.OnClickListener() { public voi..