Android spinner showing object reference instead of string

后端 未结 4 1458
耶瑟儿~
耶瑟儿~ 2021-01-04 01:52

Ok so I am having a issue with my spinner. Its being populated with data pulled from a webservice. The issue im having is that when the spinner is not clicked instead of sho

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 02:31

    In your class define Object to show in ListView, you add example line of code below

    @Override
    public String toString() {
        return getComment();
    }
    

    It word for me .

提交回复
热议问题