android系统自带的适配布局activity_list_item
16lz
2021-01-23
理想:注册页面,信息填写后,跳转到另外一个activity
结果:一点注册,app就闪退
日志显示:java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
Caused by: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextView
at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:379)
代码片段:
推荐看下:http://blog.csdn.net/yangzhaomuma/article/details/49877311
http://www.cnblogs.com/topcoderliu/archive/2011/05/07/2039862.html
更多相关文章
- Android:新手必备的常用代码片段整理(二)
- android - 常用知识点以及代码片段(不断更新)
- Android有用代码片段(一)(二)....
- Android有用代码片段(三)
- android常用的代码片段