处理listview的滑动冲突

    重写 listview的重写Onmeasure
  @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
         //给listview最大的高度
         heightMeasureSpec=MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE>>2,      MeasureSpec.AT_MOST);
     super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }

猜你喜欢

转载自blog.csdn.net/newpeoplenewlife/article/details/71428324
今日推荐