Code example for Gallery

Methods: setVisibility

0
		tv.setVisibility(View.GONE);
		iv.setVisibility(View.VISIBLE);
	} 
	 
	public void MinimizeGalleryImage() { 
		gallery.setVisibility(View.VISIBLE);
		yes.setVisibility(View.VISIBLE);
		no.setVisibility(View.VISIBLE);
		tv.setVisibility(View.VISIBLE);
		iv.setVisibility(View.GONE);
	} 
	 
	public int getGalleryHeight() { 
	    int galleryHeight = (int) (getGalleryWidth() * 1.7); 
	    if (galleryHeight > rl.getHeight() -(tv.getHeight() + yes.getHeight() + 4)) {
	    	galleryHeight = rl.getHeight() -(tv.getHeight() + yes.getHeight() + 4);
	    } 
	    return galleryHeight;
	} 
	 
	public int getGalleryWidth() {