set View Invisible - Android User Interface

Android examples for User Interface:View Hide Show

Description

set View Invisible

Demo Code


//package com.java2s;
import android.view.View;

public class Main {
    public static void setInvisible(View... views) {
        if (views != null && views.length > 0) {
            for (View view : views) {
                if (null != view && view.getVisibility() != View.INVISIBLE)
                    view.setVisibility(View.INVISIBLE);
            }/*from   w  w w.  j a  v  a2 s  . c  o m*/
        }
    }
}

Related Tutorials