在Stack Overflow上找到的答案:http://stackoverflow.com/questions/4357094/exception-on-listpreferences

 “i fixed it... I kept on trying and at the end it turns out (or seems, at the very least) that I cannot use integer-array as the entryValues Source. I just changed that integer-array to a string-array and got it working.

If there's a way to use integer-array as the source for entryValues please comment. I would still like that, it just makes more sense TO ME.”

是由于 ListPreferance 的属性android:entryValues="@array/alarm_repeat_entryvalues",传入的array为integer-array,换成string-array就行了

相关文章:

  • 2021-05-04
  • 2022-12-23
  • 2021-08-30
  • 2022-01-18
  • 2021-09-09
  • 2021-12-14
  • 2022-01-12
  • 2021-07-23
猜你喜欢
  • 2022-01-21
  • 2021-04-10
  • 2021-05-16
  • 2021-12-19
  • 2021-08-13
  • 2022-12-23
  • 2021-12-11
相关资源
相似解决方案