Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Last active August 8, 2020 16:47
Show Gist options
  • Save Skyyo/ebf920a93e3547be268efb06458432f9 to your computer and use it in GitHub Desktop.
Save Skyyo/ebf920a93e3547be268efb06458432f9 to your computer and use it in GitHub Desktop.
#extensions
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