Created
June 6, 2020 04:23
-
-
Save DjakaTechnology/ecd8b06787b3c93e2fe31b9d8cb8571f to your computer and use it in GitHub Desktop.
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
object ViewBindingAdapter { | |
@BindingAdapter("visibilityGone") | |
@JvmStatic | |
fun visibilityGone(view: View, isShouldGone: Boolean) { | |
if (isShouldGone) { | |
view.visibility = View.GONE | |
} else { | |
view.visibility = View.VISIBLE | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment