可能重复:
Andriod: Inflate listview using its android:idAndroid的:XML文件,膨胀
关于以下QN:Android Custom Listview 我想知道下面的语句:
convertView = inflater.inflate(R.layout.listitem_row, null);
如果listitem_row.xml的内容是p更大的xml文件的艺术。即,我只想膨胀更大的xml文件的这个特定部分。谢谢。
可能重复:
Andriod: Inflate listview using its android:idAndroid的:XML文件,膨胀
关于以下QN:Android Custom Listview 我想知道下面的语句:
convertView = inflater.inflate(R.layout.listitem_row, null);
如果listitem_row.xml的内容是p更大的xml文件的艺术。即,我只想膨胀更大的xml文件的这个特定部分。谢谢。
然后只是创建另一个XML包含你需要的那些特定部分,并夸大它。请先学习基本。
你可以参考我的教程之一上的ListView:http://xjaphx.wordpress.com/2011/06/12/create-application-launcher-as-a-list/
谢谢xjaphx,你帮我解决了我的问题!非常感谢你的帮助。 – OckhamsRazor
...让我想起了[某件事](http://stackoverflow.com/questions/7673911/andriod-inflate-listview-using-its -androidid)。请通过修改您的原始问题来避免重复;) –
您已在最后一个小时内发布了3次此问题! –