Android ListView with fixed header and footer

2019-02-04 18:43发布

How can I create a ListView with fixed header and footer?

I don't want the header/footer to scroll with the items in the ListView.

Is it possible that the header/footer is floating over the ListView so that the header/footer dont need to have a straight bottom/top background and the ListView items scrolls below the background of the header/footer view, but still show the first element of the list?

7条回答
乱世女痞
2楼-- · 2019-02-04 19:25

Create your own custom View using LinearLayout and ListView

查看更多
登录 后发表回答