Created
February 15, 2021 13:52
-
-
Save abircse/61d11b648fed60ed262229911a0c7ef2 to your computer and use it in GitHub Desktop.
ViewVisibilityExtension
This file contains hidden or 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
inline fun View.setVisibility(value: Boolean) { | |
this.visibility = if (value) View.VISIBLE else View.GONE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment