Spinner cannot load an integer array?

后端 未结 2 1254
慢半拍i
慢半拍i 2021-01-11 13:16

I have an application, which has a Spinner that I want populated with some numbers (4,8,12,16). I created an integer-array object in strings.xml with the items mentioned ab

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-11 13:44

    To overcome this problem, simply put quotes around your int values

    
        "18"
        "8"
    
    

提交回复
热议问题