mg4android
Newbie
It appears that my WebView is ALWAYS FULL screen and doesn't respect the layout . Also, Activity menus are not the ones I set but the browsers.
I am testing on an 2.1 android emulator.
Has anyone encountered this and know of a way to size
the WebView and be able to set your own menu ?
THANKS in advance!!
Code snippet .........
setContentView(R.layout.mainactivity);
WebView webV = (WebView)findViewById(R.id.webview);
webV.setInitialScale(30);
webV.loadUrl(getString(R.string.app_url));
Layout ....
<?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>
I am testing on an 2.1 android emulator.
Has anyone encountered this and know of a way to size
the WebView and be able to set your own menu ?
THANKS in advance!!
Code snippet .........
setContentView(R.layout.mainactivity);
WebView webV = (WebView)findViewById(R.id.webview);
webV.setInitialScale(30);
webV.loadUrl(getString(R.string.app_url));
Layout ....
<?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>