Go Back   Android Forums > Android Discussion > Android Applications
Android Applications All the information you could ever want about Android Applications. Learn about apps and get help with them... all here! New apps can be found and announced in the Applications Announcements forum linked below.

test: Reply
 
LinkBack Thread Tools
Old April 30th, 2011, 02:33 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Nov 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default webview gallery

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.loadUrl(it2[position]);

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

mWebView.setInitialScale(100);

mWebView.setFocusable(false);
mWebView.setClickable(false);
mWebView.setWebViewClient(new HelloWebViewClient());

return mWebView;
}

}

Advertisements
priyanaral is offline  
Reply With Quote
sponsored links
Old May 3rd, 2011, 08:08 AM   #2 (permalink)
New Member
Thread Author (OP)
 
Join Date: Nov 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default how to create own api

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

Priya
priyanaral is offline  
Reply With Quote
Reply
Tags
gallery, webview


Go Back   Android Forums > Android Discussion > Android Applications
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:17 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.