Here you can find the source of setViewVisibility(View view, int visibility)
public static void setViewVisibility(View view, int visibility)
//package com.java2s; //License from project: Open Source License import android.view.View; public class Main { public static void setViewVisibility(View view, int visibility) { if (null == view) { return; }/*w ww.j a v a 2 s . co m*/ if (view.getVisibility() != visibility) { view.setVisibility(visibility); } } }