https://blog.csdn.net/wenzhi20102321/article/details/53491176

 

1、一般只需要在布局中加个ScrollView即可

2、如果布局中包含listView或者gridView的话,需要重写listView或者gridView中的onMeasure方法

 

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int height = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, height);
    }

  

相关文章:

  • 2022-01-19
  • 2021-08-08
  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2021-09-17
相关资源
相似解决方案