dwarvesf/til

ListPreference: use string-array as Entry and integer-array as Entry Values doesn't work

nambv opened this issue · 2 comments

nambv commented

The answer is simple: because the Android is designed this way. It just uses String arrays for both entries and entry values and that's all. And I can't see any problem in this fact, since you can easily convert a String to an int using the Integer.parseInt() method. Hope this helps.

The problem is it isn't documented to only use string-array's. Very confusing and unexpected. Poor interface design.