Created
October 8, 2018 01:58
-
-
Save douglasiacovelli/a830971f6b7d592c777f5bb176a26db8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object BindingAdapters { | |
| @BindingAdapter(values = ["selected", "options"], requireAll = false) | |
| @JvmStatic | |
| fun setOptionsAndSelected(view: MyCustomView, selected: Option?, options: List<Option>?) { | |
| options?.let { | |
| view.setOptions(it) | |
| } | |
| selected?.let { | |
| view.setSelected(it) | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment