Android布局文件xml问题
Ronys 2011-10-21 01:25:54 为什么我使用下面那个文件:item_view.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView android:id="@+id/fileList"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:background="@drawable/white">
</TextView>
</LinearLayout>
然后再
ArrayAdapter<String>adapter= new ArrayAdapter<String>(this,R.layout.item_view,songs);
setListAdapter(adapter);
直接就报错强制关闭程序
而是用下面这个文件就不会: