Hitesh Dhamshaniya
Hitesh Dhamshaniya

Reputation: 2886

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 image with empty cell

Upvotes: 0

Views: 287

Answers (1)

Tooroop
Tooroop

Reputation: 1884

You could set in the getCount method of the base adapter to some value, e.g 20. And then in the getView method in the first 4 items set the layout for those items...in the other items set a layout that is empty.

Upvotes: 1

Related Questions