How to add a footer in ListView?

前端 未结 7 1782
时光取名叫无心
时光取名叫无心 2020-11-22 09:35

I am developing an application,In my application,I am using Listview for displaying data using dom parsing,I want to footer in listview,when i click footer additional more d

7条回答
  •  旧巷少年郎
    2020-11-22 10:06

    In this Question, best answer not work for me. After that i found this method to show listview footer,

    LayoutInflater inflater = getLayoutInflater();
    ViewGroup footerView = (ViewGroup)inflater.inflate(R.layout.footer_layout,listView,false);
    listView.addFooterView(footerView, null, false);
    

    And create new layout call footer_layout

    
    
        
    
    

    If not work refer this article hear

提交回复
热议问题