On Thu, Jul 8, 2010 at 3:40 PM, Michael powers <[email protected]> wrote: > It appears that my WebView is ALWAYS FULL screen and doesn't respect > the layout .
No, it isn't. > Also, Activity menus are not the ones I set but the browsers. That is because it is the Browser application that you are looking at. > If the URL is www.google.com in mobile mode it appears to work ok !?! Yes. > But once you click on Classic mode or any other web site in mobile/ > regular it takes up the whole screen. When the user clicks a link, WebView opens the Browser application. If the Web page you load redirects, the redirection opens the Browser application. You can implement shouldOverrideUrlLoading() in a WebViewClient, attach that to the WebView, and do what you want on link clicks and redirections. > <?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"> > > <TextView android:id="@+id/label" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:text="Type here:"/> > > WebView xmlns:android="http://schemas.android.com/apk/res/android" > android:id="@+id/webview" android:layout_width="wrap_content" > android:layout_height="wrap_content" android:layout_below="@id/label" > /> > > </RelativeLayout> Also, you cannot reliably use wrap_content with widgets that know how to scroll. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- 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

