Android examples for User Interface:View Property
set View Gone
//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 } } }