Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7903603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:47:10+00:00 2026-06-03T09:47:10+00:00

In my current project I need my users to be able to scroll over

  • 0

In my current project I need my users to be able to scroll over and zoom in on large SVG
Images. A major problem i encountered though, is the limit the android WebView class puts on zooming in and out. Is there any way I can remove or change these limits to my own likings?
The standard zoom controls do not seem to support releasing these boundries.

If my question is unclear, or if I need to elaborate on my question do not hesitate to ask.

Greets,
Wottah

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:47:12+00:00Added an answer on June 3, 2026 at 9:47 am

    Since no one seems to have come up with a different solution than using reflection – I’m not aware of any alternatives at this point – I wrote up a quick code snippet that illustrates how to bypass the upper limit on the zoom-in action.

    Note that the code below will only work on ICS, and possibly Honeycomb, but I currently don’t have a tablet lying around to inspect if the inner workings rely on the same ZoomManager class. Gingerbread, Froyo and Eclair all appear to implement the zooming functionality more or less directly in the WebView class. With the example below it should be fairly easy to add some code to also take those operating systems into account.

    // just set an Activity's content view to a single WebView for this test
    WebView mWebview = new WebView(this);
    setContentView(mWebview);
    
    // retrieve the ZoomManager from the WebView
    Class<?> webViewClass = mWebview.getClass();
    Field mZoomManagerField = webViewClass.getDeclaredField("mZoomManager");
    mZoomManagerField.setAccessible(true);
    Object mZoomManagerInstance = mZoomManagerField.get(mWebview);
    
    // modify the "default max zoom scale" value, which controls the upper limit
    // and set it to something very large; e.g. Float.MAX_VALUE
    Class<?> zoomManagerClass = Class.forName("android.webkit.ZoomManager");
    Field mDefaultMaxZoomScaleField = zoomManagerClass.getDeclaredField("mDefaultMaxZoomScale");
    mDefaultMaxZoomScaleField.setAccessible(true);
    mDefaultMaxZoomScaleField.set(mZoomManagerInstance, Float.MAX_VALUE);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my current project (presentation, slide software) I need to be able to make
In my current project, we need to authenticate users of an ASP.NET application against
In a current project i need to display PDFs in a webpage. Right now
Successfully used jquery-infinite-carousel in the past but for my current project I need it
I need to implement for current project some secure login in php. I wrote
For our current J2EE project based on JBoss, we need to interface with a
In my current project, users can like songs, and now I'm going to add
In a current project I need to support finding a User by login credentials
I have a project which provides users with a list of current tasks that
I'm faced with a curious problem in my current project: I've got multiple Spring

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.