WrapperWidget: handle View.computeScroll()

Currently the scrolling is purely visual.
This commit is contained in:
Julian Winkler
2023-10-30 22:37:48 +01:00
committed by Mis012
parent 0a8b8a3874
commit 4bce3544dd
3 changed files with 29 additions and 4 deletions

View File

@@ -1195,6 +1195,8 @@ public class View extends Object {
measure(width | MeasureSpec.EXACTLY, height | MeasureSpec.EXACTLY);
}
boolean changed = oldWidth != width || oldHeight != height;
if (changed)
onSizeChanged(width, height, oldWidth, oldHeight);
onLayout(changed, 0, 0, width, height);
oldWidth = width;
oldHeight = height;
@@ -1526,4 +1528,6 @@ public class View extends Object {
public void setLayerType(int layerType, Paint paint) {}
public float getZ() {return 0.f;}
protected void onSizeChanged(int w, int h, int oldw, int oldh) {}
}