Created
September 5, 2014 11:43
-
-
Save ayushhgoyal/5240c8c8c080e354ae94 to your computer and use it in GitHub Desktop.
This utility class allows to change visibility of multiple views in one call.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class VisibilityUtil { | |
public static void setViewVisible(View... views) { | |
for (View v : views) { | |
v.setVisibility(View.VISIBLE); | |
} | |
} | |
public static void setViewGone(View... views) { | |
for (View v : views) { | |
v.setVisibility(View.GONE); | |
} | |
} | |
public static void setViewInvisible(View... views) { | |
for (View v : views) { | |
v.setVisibility(View.INVISIBLE); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment