Android Utililty Methods View Visibility Change

List of utility methods to do View Visibility Change

Description

The list of methods to do View Visibility Change are organized into topic(s).

Method

voidswitchVisible(ViewGroup viewGroup, View _view)
switch Visible
for (int i = 0; i < viewGroup.getChildCount(); i++) {
    View view = viewGroup.getChildAt(i);
    if (_view == view) {
        view.setVisibility(View.VISIBLE);
    } else {
        view.setVisibility(View.GONE);
voidswitchVisible(ViewGroup viewGroup, int id)
switch Visible
for (int i = 0; i < viewGroup.getChildCount(); i++) {
    View view = viewGroup.getChildAt(i);
    if (view.getId() == id) {
        view.setVisibility(View.VISIBLE);
    } else {
        view.setVisibility(View.GONE);