Join Slack
Powered by
Is there an adapter that provides data to a Spinne...
# android
l
locke
05/31/2018, 2:30 PM
Is there an adapter that provides data to a Spinner that doesn't require a Context? Seems like the adapter should live in the ViewModel, which can't contain a Context.
l
louiscad
05/31/2018, 2:53 PM
You can access the applicationContext everywhere:
https://github.com/LouisCAD/Splitties/blob/master/appctx/README.md
Open in Slack
Previous
Next