Hi,

On my extended webview class i have:

@Override
   public boolean onTouchEvent(MotionEvent ev) {
       boolean consumed = super.onTouchEvent(ev);

       if (isClickable())
           if (ev.getAction() == MotionEvent.ACTION_DOWN)
           {
              this.loadUrl("javascript: updatePoints();");
           }
       if (ev.getAction() == MotionEvent.ACTION_UP)
        {
            this.loadUrl("javascript: updatePoints();");
        }
       return consumed;
   }


The updatePoints() called on js side resize all the elements on my
webview. On Android 2.2 and Android 3.0 It works fine, but on the
2.3.4 sometimes the webview doesn't resize anything. It happens just
with pinch zoom.

If i click on zoom in button (that open on the right bottom of
screen), on the end of zoom, all elements are resized.


I was looking to zoomIn() implementation:

public boolean zoomOut() {
// TODO: alternatively we can disallow this during draw history mode
        switchOutDrawHistory();
        // Center zooming to the center of the screen.
        mZoomCenterX = getViewWidth() * .5f;
        mZoomCenterY = getViewHeight() * .5f;
        mAnchorX = viewToContentX((int) mZoomCenterX + mScrollX);
        mAnchorY = viewToContentY((int) mZoomCenterY + mScrollY);
        return zoomWithPreview(mActualScale * 0.8f, true);
}


http://grepcode.com/file/repository.gre ... omIn%28%29

I can't access it with my extended class.

I don't know what part of this code enable all resizes on my JS.

Does anyone knows how can i fix it?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to