set View Gone - Android User Interface

Android examples for User Interface:View Property

Description

set View Gone

Demo Code


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

public class Main {
    public static void setGone(View... views) {
        if (views != null && views.length > 0) {
            for (View view : views) {
                if (null != view && view.getVisibility() != View.GONE)
                    view.setVisibility(View.GONE);
            }//from  ww  w . ja  v  a 2s.c  o m
        }
    }
}

Related Tutorials