我在ListActivity 使用 ArrayAdapter(Context context, int resource, int textViewResourceId, T[] objects) 时出现异常,logcat捕捉的到的是android.widget.ArrayAdapter.createViewFromResource 这个接口在实例化view的时候出现了异常。HelloListView.java 代码如下:public class HelloListView extends ListActivity {
    String[] COUNTRIES = new String[] {
     "a",
     "b",
     "c"
    };
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);        /**这一句调用出错**/
        setListAdapter(new ArrayAdapter<String>(this, R.layout.resource_id, R.layout.textviewres_id,COUNTRIES));        
    }   
   
}
第二个参数对应的resource_id.xml<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:text="1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:text="2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
<TextView
android:text="3"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>第三个参数对应的textviewres_id.xml<?xml version="1.0" encoding="utf-8"?>
<!--  This file defines the layout for each item that will be placed in the ListView -->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"    
android:layout_width="fill_parent"    
android:layout_height="fill_parent"    
android:padding="10dp"    
android:textSize="16sp"
android:text="abc" 
android:color="#aa0000"
>
</TextView>