Narender Gusain
Narender Gusain

Reputation: 2450

In a listview, how can we change the specific item layout of particular position?

In a listview, how can we change the specific item layout of particular position ?

Upvotes: 0

Views: 208

Answers (1)

Raluca Lucaci
Raluca Lucaci

Reputation: 2153

You will create 2 xml files with layout : item.xml special_item.xml . In your adapter in get view check if (position=x ) inflate special_item else inflate item .

Upvotes: 1

Related Questions