简体   繁体   中英

How can I make Listview in android like iPhone Tableview?

Listview with empty cell, without adding blank object in Adapter (myAdapter.add("")). I don't want that type of solution. Is there any property or method which though we get this type of functionality.

Iphone Image Tableview

带空单元格的iphone tableview图像

您可以在基本适配器的getCount方法中将其设置为某个值,例如20。然后在前4个项目的getView方法中,设置这些项目的布局...在其他项目中,将布局设置为空。

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