Android ListView with fixed header and footer

前端 未结 7 831
半阙折子戏
半阙折子戏 2020-12-30 07:14

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.

7条回答
  •  礼貌的吻别
    2020-12-30 07:54

    Use a LinearLayout, add your header upon the ListView and the footer above. Gives the ListView layout_weight="1"

提交回复
热议问题