自定义View添加滚动条注意事项

布局文件部署好后,注意在自定义的MyView中重写一个方法

1 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
2     setMeasuredDimension(800, 2000);
3 }
原文地址:https://www.cnblogs.com/taoxiuxia/p/4372691.html