开发者

set imagebutton after listview and before footer tabbar

Hi, I want to place two imagebuttons between listview and footer tabbar. If listview contains 10items then the buttons appear at last of the listview after displaying 10items in list开发者_开发问答view. Please help. thanks in advance.


I think ListView.addFooterView() is what you're looking for. http://developer.android.com/reference/android/widget/ListView.html#addFooterView(android.view.View)


use this

View view mInflater.inflate(R.layout.list_load_more_row, null);

Button footer = (Button) view.findViewById(R.id.loadMore);

getListView().addFooterView(footer);

setListAdapter(ListViewHelper.getAdapterForContentList(mContent, this));

u can add header also in ur listview


Add FooterView in list view:

LayoutInflater inflater = activity.getLayoutInflater();
LinearLayout listFooterView = (LinearLayout)inflater.inflate(
            R.layout.footer_layout, null);
list.addFooterView(listFooterView);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜