简体   繁体   中英

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

实际上是主题中的问题。如何通过xml配置ListActivity的ListView,例如padding,dividerHeight等...

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM