Skip to content

Instantly share code, notes, and snippets.

@har5hit
Created October 14, 2018 10:25
Show Gist options
  • Save har5hit/d06d31d2de88a49ceeeabb8b9cae9252 to your computer and use it in GitHub Desktop.
Save har5hit/d06d31d2de88a49ceeeabb8b9cae9252 to your computer and use it in GitHub Desktop.
Binding adapter, pass string as attribute
bind:selectedConstantType="@{`SHIRTS`}"
@InverseBindingAdapter(attribute = "selectedConstantValue", event = "selectedConstantValueAttrChanged")
@BindingAdapter(value = {"selectedConstantValue","selectedConstantType", "selectedConstantValueAttrChanged"}, requireAll = false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment