Zoom controls and WebView

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Zoom controls and WebView

Postby mike_collins » Wed Mar 04, 2009 10:13 pm

I can get the zoom controls to show up and function with a WebView
but they are stuck in one place relative to the web page, so if you
zoom in too far they are 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 that had no effect...any ideas?

tia,
mike
mike collins
mike_collins
Freshman
Freshman
 
Posts: 5
Joined: Thu Nov 20, 2008 1:43 am
Location: Oregon

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests