Code example for CheckBox

Methods: isChecked

0
 
        Button starter = (Button) findViewById(R.id.startButton);
        starter.setOnClickListener(new View.OnClickListener() {
 
            public void onClick(View v) {
                animView.startAnimation(endCB.isChecked());
            } 
        }); 
 
        Button canceler = (Button) findViewById(R.id.cancelButton);
        canceler.setOnClickListener(new View.OnClickListener() {
 
            public void onClick(View v) {
                animView.cancelAnimation();
            } 
        }); 
 
        Button ender = (Button) findViewById(R.id.endButton);
        ender.setOnClickListener(new View.OnClickListener() {
 
            public void onClick(View v) {