Skip to content

Instantly share code, notes, and snippets.

@ajaypro
Created April 10, 2020 23:58
Show Gist options
  • Save ajaypro/5c6c82bd0c431ed381d1b2a46508835d to your computer and use it in GitHub Desktop.
Save ajaypro/5c6c82bd0c431ed381d1b2a46508835d to your computer and use it in GitHub Desktop.
Null Coalescing Operator
Can be used in data binding
android:text='@{item.title ?? ""}'
android:text='@{imageProperty.copyright ?? ""}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment