1. Download the #1 Android News App:   EarlyBird - News for Android
    Dismiss Notice

webview gallery

Last Updated:

  1. priyanaral

    priyanaral New Member

    Hello everyone,

    I am new to android developer. Now i am doing webview gallery

    in this gallery i load some images and i set loyout for mWebView.setLayoutParams(new Gallery.LayoutParams(70,85)); this 70 and 85 is height and width for webview but when the images are webview.loadurl that time some big and some small images are load... so problem is images are display more than width size and some lower than width then i won't set dynamically set height and width. It's height and width depend on whaterver images are comes for url ...see the below code then u can understand more detail .........

    public View getView(int position, View convertView, ViewGroup parent) {

    WebView mWebView = new WebView(mContext);


    mWebView.setWebViewClient(new WebViewClient());
    mWebView.setLayoutParams(new Gallery.LayoutParams(70,85));
    WebSettings webSettings = mWebView.getSettings();


    mWebView.setWebViewClient(new HelloWebViewClient());

    return mWebView;


  2. priyanaral

    priyanaral New Member

    Hello everyone,

    I won't create own api this api creating purpose for sending and receiving for server side database and this database for any ..so I refer some document so i little bit confused which web service i can used rest or soap so please tell mi how to create own API.

    Thanks and Regards


Share This Page