一. 继承 ListView 重写两个方法 public class Mylistview extends ListView { public Mylistview(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int i = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE>>2,MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, i); } }
二.PullToRefreshScrollView 整体下拉刷新上拉加载 需要新建一个Mylistview
最新推荐文章于 2024-07-19 09:44:13 发布