1.5 SDK problem with WebView.getZoomControls()

by N4Spd » Thu, 16 Apr 2009 13:47:56 GMT


Sponsored Links
 I have webview whose zoom controls are placed into a linearlayout at
the bottom of the screen.

It's been working fine on 1.1 but testing on the new 1.5 beta SDK
shows that the zoom controls are scrunched.
They still work, just the layout is bad (buttons overlapping).

I have code similar to what's been posted here:

ViewGroup zoom=(ViewGroup)findViewById(R.id.zoom);
zoom.addView(_webView.getZoomControls());

The layout is also similar to what's been posted here:

<RelativeLayout ...>
   <WebView.../>
        <LinearLayout android:id="@+id/zoom"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentBottom="true"
                android:layout_alignParentLeft="true" />
</RelativeLayout>

thanks,
rob
--~--~---------~--~----~------------~-------~--~----~



1.5 SDK problem with WebView.getZoomControls()

by jharby » Wed, 29 Apr 2009 01:07:30 GMT


 


I'm seeing that getZoomControls() is deprecated. Does anyone know the
alternative?

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


Sponsored Links


1.5 SDK problem with WebView.getZoomControls()

by nEx.Software » Wed, 29 Apr 2009 05:09:43 GMT


 Should be: WebView.getSettings().setBuiltInZoomControls(true);






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



Other Threads

1. Camera standby when screen is off?

Hello,

If an application is using the camera and the screen goes off, the
camera (hardware/software) continues to work or is disabled? I want to
know to avoid draining the battery.

Thanks

Ricardo Silva

-- 

2. [WTA] T-mobile G2x atau Mytouch.

ada saran..

-- 
@JP
~from pc~
milist-bebas-sh...@googlegroups.com (bebas berkarya)

-- 
"

3. [Ask] Whatsapp gak bisa di install

4. Android 2.3.4. on Nexus S Calendar stuck

5. Fwd: Android Camera Streaming through RTP/RTSP?

6. Android Camera Streaming through RTP/RTSP?

7. Urdu Support in Android message