List of utility methods to do View Visibility Change
void | switchVisible(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); |
void | switchVisible(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); |