Skip to content

Instantly share code, notes, and snippets.

@mochadwi
Created April 12, 2019 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mochadwi/a06b98f4342a910d603ca4e8f191cf4c to your computer and use it in GitHub Desktop.
Save mochadwi/a06b98f4342a910d603ca4e8f191cf4c to your computer and use it in GitHub Desktop.
Android - Data binding static value

https://stackoverflow.com/a/44675483/3763032 Buat yang mau set static value (primitive data type, object, etc) without using model, or any java API di xml:

app:customBinding="@{static_value}" app:customBinding='@{"static_value"}'

thanks @radhikayusuf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment