List activity with header, footer and empty all visible

前端 未结 8 1382
失恋的感觉
失恋的感觉 2021-01-08 00:36

I would like to have the listview in a ListActivity be displayed with the header and footer visible all the time even if the list data is empty.

An empty list causes

8条回答
  •  [愿得一人]
    2021-01-08 00:51

    You could use my MergeAdapter for this. Add the header view, add the data adapter, and add the footer view. They will all scroll in unison, and the header and footer will persist even if the adapter in the middle has no rows.

提交回复
热议问题