@Override
public View getView(int position, View convertView, ViewGroup parent) {
//省略相关代码
//可以根据position对某Item进行高度设置
AbsListView.LayoutParams layoutParams = new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, 1); //高度不能小于1,测试发现设置为0时不生效
convertView.setLayoutParams(layoutParams);
return convertView;
}
相关的自定义滑动view可以参考https://blog.csdn.net/u014608640/article/details/83818671项目中的wheelview