Code example for Spinner

Methods: setVisibilitygetCount

0
		   
	   } 
	    
	   private void invisibleSpinner(Spinner sp,Button b){
		    
		   if(sp.getCount()==0){
			    
			   sp.setVisibility(View.GONE);
			   b.setVisibility(View.GONE);
			    
		   } 
		   else{ 
			   sp.setVisibility(View.VISIBLE);
			   b.setVisibility(View.VISIBLE);
			    
		   } 
		    
	   } 
	    
	    
Stop searching for code, let great code find you!  Add Codota to your java IDE