摘要:
1.加头尾部(1)定自义一个xml布局 my_headview.xml在Activity类里找到这个自定义布局,并添加到头部LinearLayout hearderViewLayout = (LinearLayout) LayoutInflater.from( xwActivity.this).inflate(R.layout.my_headview, null);listview.addHeaderView(hearderViewLayout);(2)定自义一个xml布局 my_footview.xmlLinearLayout footViewLayout = (LinearLay... 阅读全文