menu_on_top
menu_on_top

Reputation: 2613

Image from WebView

i m getting a photo from the web,but i see it very large..how could i see it with zoom out?this is my code for webView:

public class gavros extends Activity {
    WebView browser;

        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.efimerides);


            browser =(WebView)findViewById(R.id.webview);

            browser.loadUrl("http://...");
        }}

Upvotes: 0

Views: 315

Answers (1)

Juhani
Juhani

Reputation: 5108

Checkout WebView's setInitialScale method:

http://developer.android.com/reference/android/webkit/WebView.html#setInitialScale(int)

Upvotes: 1

Related Questions