michaelprimez / searchablespinner

Searchable Spinner
Apache License 2.0
314 stars 102 forks source link

Android DataBinding support #22

Open giaur500 opened 6 years ago

giaur500 commented 6 years ago

Hi, I'm trying to figure out how to bind items with Android Data Binding. With regular spinner, I can use:

android:entries="@{user.categoryNames}"
android:selectedItemPosition="@={user.selectedCategoryPosition}"

To eaisly bind items (list) and configure BindingAdapter for selection get/change. However, your spinner control does not expose required properties. Do you think there is any workaround?