开发者

Android: Xml file, inflate [duplicate]

开发者 https://www.devze.com 2023-04-11 08:49 出处:网络
This question already has answers here: Close开发者_StackOverflow中文版d 11 years ago. Possible 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

精彩评论

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