get View Visibility - Android User Interface

Android examples for User Interface:View Hide Show

Description

get View Visibility

Demo Code


//package com.java2s;

import android.view.View;

public class Main {
    public static int getViewVisibility(View view) {
        if (null == view) {
            return View.GONE;
        }//from  w ww .  j a  v  a2  s  . co m

        return view.getVisibility();
    }
}

Related Tutorials