Code example for NumberPicker

Methods: setVisibility

0
        final RadioButton r2 = (RadioButton) findViewById(R.id.distance_limit);
        final RadioButton r3 = (RadioButton) findViewById(R.id.free_running);
         
        r1.setOnClickListener(new View.OnClickListener(){
        	public void onClick(View v) {
        			np.setVisibility(View.VISIBLE);
        	}	 
        }); 
         
        r2.setOnClickListener(new View.OnClickListener(){
        	public void onClick(View v) {
            	   np.setVisibility(View.VISIBLE);
        	} 
        }); 
         
        r3.setOnClickListener(new View.OnClickListener(){
        	public void onClick(View v) {
            	   np.setVisibility(View.INVISIBLE);
        	} 
        }); 
Contextual code suggestions in your IDE  Get Codota for Java