if you want to add button in a listview you need two layout one layout is a listview and second layout is showing button which you want and with the help of this code you can show listview with buttons.
LayoutInflater inflater = this.getLayoutInflater();
LinearLayout listFooterView = (LinearLayout)inflater.inflate(
com.demo.list.R.layout.footerview, null);
LinearLayout listHeaderView = (LinearLayout)inflater.inflate(
com.demo.list.R.layout.headerview, null);
ListView lv = getListView();
lv.setTextFilterEnabled(false);
lv.addFooterView(listFooterView);
lv.addHeaderView(listHeaderView);
here headerview and footerview is different layout in which i am showing buttons with listview.