set View Visible - Android User Interface

Android examples for User Interface:View Hide Show

Description

set View Visible

Demo Code


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

public class Main {
    public static void setVisible(View... views) {
        if (views != null && views.length > 0) {
            for (View view : views) {
                if (null != view && view.getVisibility() != View.VISIBLE)
                    view.setVisibility(View.VISIBLE);
            }/*from w  w  w .ja  v a2s  .  com*/
        }
    }
}

Related Tutorials