-2
안드로이드
두 확인란을 확인한 후 내가 어떻게 내가메이크업 버튼을 클릭
덕분에 프로그래밍에 새로운 오전
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final CheckBox ch1 = (CheckBox)findViewById(R.id.checkBox1);
final CheckBox ch2 = (CheckBox)findViewById(R.id.checkBox2);
final Button start = (Button)findViewById(R.id.button1);
if(ch1.isChecked() && ch2.isChecked()){
start.setOnClickListener(new OnClickListener(){
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Toast.makeText(getApplicationContext(), "OK", Toast.LENGTH_LONG);
}
});
}
}
안드로이드
<CheckBox
android:id="@+id/checkBox1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ok1" />
<CheckBox
android:id="@+id/checkBox2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ok2" />
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Start" />
두 확인란을 확인한 후 버튼을 클릭 할 수 있습니다 사전에
코드를 표시하십시오. 시도한 것과 멈춘 위치를 표시하십시오. 이것은 당신이 대답을 얻고 기회를 줄이는 기회를 증가시킬 것입니다. – chr