Skip to content

Instantly share code, notes, and snippets.

@alz-ahm
Last active March 15, 2019 09:59
Show Gist options
  • Save alz-ahm/12e50267ef7221409d462dc76b297e6c to your computer and use it in GitHub Desktop.
Save alz-ahm/12e50267ef7221409d462dc76b297e6c to your computer and use it in GitHub Desktop.
View-View-Model-Communication
//This is wrong!!
myView.visibility = if(user.isAdmin()) View.VISIBLE else View.GONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment