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. Can't change date/time on Gingerbread? (iMX R10 and R10.1)

Attempting to change the date from the shell reveals a little more
information:

$ adb shell date $(date +%s)
time 1303997425 -> 1303997425.0
settimeofday failed Bad file number
$

I'm trying to find information on the settimeofday failed error, but
so far no luck.




-- 

2. Unfinished Prototype. Is That All I Need?

This sounds like a silly question but I really need an answer. I just
want to know if I have to create an actual functional app on the
backend if I am only demonstrating a prototype of the app so that I
can sell the intellectual property? In other words, can create the
front end to simulate data being stored/retrieved and so forth without
actually doing it? But is that how the business works? I've never done
this before and I am seeking aide and I would like to subscribe to the
developer mailing list.

--Fei Wong
portfoliobuil...@hotmail.com

-- 

3. Download Gagal di SGS

4. nexus atau arc

5. Kaspersky Temukan 70 Jenis Malware di Ponsel Android

6. Can't change date/time on Gingerbread? (iMX R10 and R10.1)

7. Downloading image from URL with spaces in the path in Android