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);
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
@chuyao 谢谢提醒