TextView v = new TextView(context);
int height = DEFAULT_HEIGHT_SIZE * 6;
if (height < DeviceInfo.HEIGHT * 0.5) {
height = (int) (DeviceInfo.HEIGHT * 0.5);
}
Log.e("slideHeight", "----->" + height);
v.setText(" ");
v.setBackgroundColor(Color.RED);
v.setLayoutParams(new AbsListView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, height));
listView.addFooterView(v);
@chuyao 谢谢提醒