I try to create a web browser with custom width and height rather than
fill screen, is that possible to do in android? Below is my snippet
code:
AbsoluteLayout.LayoutParams params = new
AbsoluteLayout.LayoutParams(
180,
180,
50,
90);
webview = (WebView) findViewById(R.id.webview);
webview.setLayoutParams(params);
webview.getSettings().setJavaScriptEnabled(true);
webview.loadUrl("http://www.google.com");
what am I doing is set web view's width and height to 180 pixels, and
coordinate to 50 and 90. when I run this test, it display a white
square on screen, nothing render at all. Could any one tell me how to
do it in android?
--
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