Android examples for User Interface:View Child
Set Child View Visibility
//package com.java2s; import android.view.View; public class Main { public static Boolean SetChildVisibility(View parentView, int nViewId, int nVisibility) { View view = (View) parentView.findViewById(nViewId); if (view == null) { return false; }/* w w w .j a v a2 s. co m*/ view.setVisibility(nVisibility); return true; } }