How to add Header in ListView at specific location and create custom view for list item

前端 未结 3 1962
臣服心动
臣服心动 2021-01-20 14:51

i am again here with one issue i want to crate a custom view of list item with imageview and textview\'s and also i need to add header\'s on specific positions. i never use

3条回答
  •  萌比男神i
    2021-01-20 15:23

    You can add your own Header at any specific position using getItemViewType() and getViewTypeCount(). Here is a nice blog that explain everything about using these methods.

提交回复
热议问题