ArrayAdapter requires the resource ID to be a TextView问题

来源:互联网 发布:python爬虫能干什么 编辑:程序博客网 时间:2024/06/06 01:37
<?xml version="1.0" encoding="utf-8"?> 




<TextView  xmlns:android="http://schemas.android.com/apk/res/android"
 android:id="@+id/text_item1"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:gravity="center_vertical"
    android:text="@string/hello"

    />


注意红字 改了就不会出现这个异常了

原创粉丝点击