Zoom controls and WebView

by Mike Collins » Thu, 05 Mar 2009 05:44:30 GMT


Sponsored Links
 I can get the zoom controls to appear in a WebView but they
are stuck in one location on the web page.  Zooming in too
far and the controls move off-screen.

Tried this

View zc = m_WebView.getZoomControls();
RelativeLayout.LayoutParams p = new RelativeLayout.LayoutParams
             (RelativeLayout.LayoutParams.WRAP_CONTENT,
              RelativeLayout.LayoutParams.WRAP_CONTENT );
p.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
p.addRule(RelativeLayout.CENTER_HORIZONTAL);

m_WebView.addView(zc, p);

but doesn't make any difference...any ideas?

tia,
   mike

--~--~---------~--~----~------------~-------~--~----~