Ben Feldman wrote: > Sure. > > <?xml version="1.0" encoding="utf-8"?> > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > android" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > > > <WebView android:id="@+id/WV_1" > android:layout_width="fill_parent" > android:layout_height="fill_parent" /> > </LinearLayout>
Ummmm...where you are specifying the location for the zoom controls? I haven't played with the zoom controls for WebView, but the API is pretty similar to the zoom controls on MapView. In that case, you can put in your layout where the zoom controls are supposed to go: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.google.android.maps.MapView android:id="@+id/map" android:layout_width="fill_parent" android:layout_height="fill_parent" android:apiKey="00yHj0k7_7vzDDmwgQLGkUa7oJbRal2t7bWIkWw" android:clickable="true" /> <LinearLayout android:id="@+id/zoom" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" /> </RelativeLayout> Here, I have a LinearLayout that will eventually hold the zoom controls, and I use a RelativeLayout parent to force that LinearLayout to the lower-left corner. You then only need a bit of Java to put the zoom controls in there: ViewGroup zoom=(ViewGroup)findViewById(R.id.zoom); zoom.addView(map.getZoomControls()); Again, I haven't tried this with WebView, but my guess is that it will work. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

