listview底部增加按钮

View bottomView=getActivity().getLayoutInflater().inflate(R.layout.btn_my_course, null);



myCourses = (FButton) bottomView.findViewById(R.id.myCourses);



lv = (ListView) view.findViewById(R.id.more2_lv);

        

lv.addFooterView(bottomView);

 

通过addFooterView方法实现,

bottomView为自定义底部View布局文件

你可能感兴趣的:(ListView)