Last active
August 8, 2020 16:47
-
-
Save Skyyo/ebf920a93e3547be268efb06458432f9 to your computer and use it in GitHub Desktop.
#extensions
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
package com.skyyo.ext | |
import android.util.Log | |
import android.view.View | |
fun hideViews(vararg views: View) = views.forEach { it.visibility = View.GONE } | |
fun showViews(vararg views: View) = views.forEach { it.visibility = View.VISIBLE } | |
fun Any.log(message: String) = Log.d("vv", message) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment