可能重複:
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次此問題! –