开发者

Android: is it possible to configure ListView of ListActivity via xml

Actualy the question in subject... How to configure ListView of 开发者_开发知识库ListActivity via xml, for example padding, dividerHeight etc...


I've found approprieate solution for me, the only one thing what I need is to declare ListView component with id="@android:id:list" in the root layout for the ListActivity. After that I am uble to customize ListView component which is used for the ListActivity in a normal way via xml.


Yes, it is You can do it via a separate Style xml sheet or you can set it as properties in much the same way as you set the name.

I suggest looking here for more info: Android Developers

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜