Android View Show setViewVisibility(View view, int visibility)

Here you can find the source of setViewVisibility(View view, int visibility)

Description

set View Visibility

License

Open Source License

Declaration

public static void setViewVisibility(View view, int visibility) 

Method Source Code

//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);
        }
    }
}