yarolegovich / MaterialPreferences

A highly flexible set of lovely looking views that provides functionality of preferences.
Apache License 2.0
484 stars 65 forks source link

Define MaterialChoicePreference entries at runtime #12

Closed mescalantea closed 6 years ago

mescalantea commented 6 years ago

First of all, thank you for this wonderful library. I am using MaterialChoicePreference to select the path where data is stored in my app, based on the available storage units. Currently I use a string array with the values "internal storage" and "micro sd" respectively. However, I need to assign these values at run time based on the availability of storage units at a given time. How could I achieve this?

yarolegovich commented 6 years ago

Yeah, that's possible. Check out this API and an example implementation.