Set Child View Visibility - Android User Interface

Android examples for User Interface:View Child

Description

Set Child View Visibility

Demo Code


//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;
    }
}

Related Tutorials