Android: Xml file, inflate [duplicate]
Possible Duplicate:
Andriod: Inflate listview using its android:id
With regard to the following qn : Android Custom Listview I would like to know how the following statement:
convertView = inflater.inflate(R.layout.listitem_row, null);
can be implemented if the contents of listitem_row.xml are part of a larger xml file. i.e., i only want to inflate this specific part of the larger xml file. Thanks.
Then just create another XML contain those specific parts you need, and inflate it. Please learn the basic first.
You can refer to one of my tutorials on ListView: http://xjaphx.wordpress.com/2011/06/12/create-application-launcher-as-a-list/
精彩评论