0
点赞
收藏
分享

微信扫一扫

【安卓开发】ArrayAdapter requires the resource ID to be a TextView


出现这种报错

【安卓开发】ArrayAdapter requires the resource ID to be a TextView_android


原因:使用listview时,用arrayadapter的xml网页没有单纯的只包含一个

解决方案:使用自带的样式或是再编写一个适配器

【安卓开发】ArrayAdapter requires the resource ID to be a TextView_xml_03


android.R.layout.simple_spinner_dropdown_item是自带的

​​listview使用方法​​


举报

相关推荐

0 条评论