[android-developers] Re: 1.5 SDK problem with WebView.getZoomControls()

2009-04-29 Thread Jason Parekh
On Wed, Apr 29, 2009 at 2:29 PM, Mariano Kamp wrote: > Jason, thanks, I just tried that and, as you say, it works too. > Regarding performance you talk about the lack of HW acceleration for the old > way or is it layout performance you talk about? Not a problem. I was referring to the lack of H

[android-developers] Re: 1.5 SDK problem with WebView.getZoomControls()

2009-04-29 Thread Mariano Kamp
Jason, thanks, I just tried that and, as you say, it works too. Regarding performance you talk about the lack of HW acceleration for the old way or is it layout performance you talk about? On Wed, Apr 29, 2009 at 7:16 PM, Jason Parekh wrote: > > On Wed, Apr 29, 2009 at 2:47 AM, Mariano Kamp > w

[android-developers] Re: 1.5 SDK problem with WebView.getZoomControls()

2009-04-29 Thread Jason Parekh
On Wed, Apr 29, 2009 at 2:47 AM, Mariano Kamp wrote: > > android:id="@+id/browse_zoom" > > android:layout_width="wrap_content" > > android:layout_height="wrap_content" > > android:layout_centerHorizontal="true" > > android:layout_below="@id/swipe_container" /> I saw your subsequent post about u

[android-developers] Re: 1.5 SDK problem with WebView.getZoomControls()

2009-04-29 Thread Mariano Kamp
The following is butt ugly and should not be necessary in a perfect world, but works for me: private void createWebView(View parent) { webView = (WebView) parent.findViewById(R.id.content_web_view); webView.setWebViewClient(new EmbeddedWebViewClient()); Method setBuiltInZoomControlsMethod = n

[android-developers] Re: 1.5 SDK problem with WebView.getZoomControls()

2009-04-28 Thread nEx.Software
Should be: WebView.getSettings().setBuiltInZoomControls(true); On Apr 28, 1:30 pm, Jason Parekh wrote: > The preferred API is > WebView.getWebSettings().setBuiltInZoomControls(true).  The new API is > simpler in that just setting the flag will automatically add/hide the > zoom controls.  It will

[android-developers] Re: 1.5 SDK problem with WebView.getZoomControls()

2009-04-28 Thread Jason Parekh
The preferred API is WebView.getWebSettings().setBuiltInZoomControls(true). The new API is simpler in that just setting the flag will automatically add/hide the zoom controls. It will also have better performance on the G1 and some other devices due to it being hardware composited on top of the

[android-developers] Re: 1.5 SDK problem with WebView.getZoomControls()

2009-04-28 Thread Mariano Kamp
Yeah, I have the same problem. Anyone? Is the suddenly breaking and now deprecated getZoomControls() considered private API? On Tue, Apr 28, 2009 at 6:04 PM, jharby wrote: > > On Apr 15, 10:47 pm, N4Spd wrote: > > I have webview whose zoom controls are placed into a linearlayout at > > the bot

[android-developers] Re: 1.5 SDK problem with WebView.getZoomControls()

2009-04-28 Thread jharby
On Apr 15, 10:47 pm, N4Spd wrote: > 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 (butto