ArrayIndexOutOfBoundsException with custom Android Adapter for multiple views in ListView

前端 未结 4 1852
暗喜
暗喜 2020-11-28 18:53

I am attempting to create a custom Adapter for my ListView since each item in the list can have a different view (a link, toggle, or radio group), but when I try to run the

4条回答
  •  自闭症患者
    2020-11-28 19:14

    Issue comes when getItemType value is wrong. This value should be an integer and should be from 0 to getViewTypeCount()-1.

提交回复
热议问题