Often we need to play with the view's visibility. Extension functions can help us here. If you see in the ViewExtensions.kt file, there are two extension functions written inside:
fun View.visible() { this.visibility = View.VISIBLE } fun View.gone() { this.visibility = View.GONE }
So now suppose you want to change the visibility of any of the views, you can write the code in the following way:
cardLinkedInUser.visible() btnLoginLinkedIn.gone()