Code example for RadioGroup

Methods: getVisibility, setVisibility

0
        }); 
 
        advOptionsButton.setOnClickListener(new View.OnClickListener() {
            @Override 
            public void onClick(View v) {
                if (advOptionsLayout.getVisibility() == View.VISIBLE) {
                    advOptionsLayout.setVisibility(View.GONE);
                } 
                else { 
                    advOptionsLayout.setVisibility(View.VISIBLE);
                } 
            } 
        }); 
    } 
 
    @Override 
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
 
        // Reset the activity back to the original state 
        reset();