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

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



Other Threads

1. Popping up Toast (or something like it) from a thread

My user hits a button and kicks off a process that takes 3 steps in
about 10 seconds total. I'd like to pop up Toast messages "Step 1",
"Step 2", "Step 3", "Finished!" as the process progresses. I'm using
the standard Java Thread interface to run the process in a thread and
I've found that trying to pop up Toast from the thread causes an FC.
What is the best way to report this kind of progress - step by step
messages?

-- 

2. How to prevent auto whitespace trimming in TextView?

When setting text on a TextView, all leading/trailing whitespace is
trimmed.

Is there a way to stop this?

-- 

3. Cannot use explicit intents to call another application?

4. Game math/logic calulating movement

5. Column headings in TableLayout

6. Online scanning with norton

7. Creating a JTree-like widget for Android?