Adding bottom margin to ListView last element

前端 未结 7 1467
夕颜
夕颜 2021-01-30 06:35

I need to add to add ListView with complicated items background: different for even/odd and rounded corners at the top and bottom. It looks like this:

7条回答
  •  逝去的感伤
    2021-01-30 06:42

    add an empty footer in your list like this:

    TextView empty = new TextView(this);
    empty.setHeight(150);
    listview.addFooterView(empty);
    

提交回复
热议问题