Android examples for User Interface:View
set View Visibility
//package com.java2s; import android.view.View; public class Main { public static void setViewVisibility(View view, int visibility) { if (null == view) { return; }/*from www.j av a2 s .c om*/ if (view.getVisibility() != visibility) { view.setVisibility(visibility); } } }