开发者

Image from WebView

开发者 https://www.devze.com 2023-02-01 10:14 出处:网络
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:

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 firs开发者_如何转开发t created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.efimerides);


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

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


Checkout WebView's setInitialScale method:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号