开发者

Android: Xml file, inflate [duplicate]

This question already has answers here: Close开发者_StackOverflow中文版d 11 years ago.

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜