First, this demo will gradually improve
One of the 2nd pictures is to move a line effect.
Here is the principle of implementation:
Using fragmentactivity+ multiple viewpage+fragment,
The picture resource is Baidu's,
Each fragment display up to 2 pictures, if not enough 2 hidden redundant, in the resolution of the picture data, calculate each fragment should display the picture
Image download tool directly using Universal-image-loader
Note the use of the Baidu API to obtain resources, if used conn = (httpurlconnection) url.openconnection ();
Need to add Conn.setrequestproperty ("User-agent", "mozilla/4.0" (compatible; MSIE 5.0; Windows NT; Digext) ");
If using httpclient httpclient = new Defaulthttpclient (); No need to add
The reasons are as follows:
The user agent Chinese name is called "UA", which is a special string header that allows the server to identify the operating system and version, CPU type, browser and version, browser rendering engine, browser language, browser plugin, etc. used by the client.
Some websites often judge the UA to send different pages to different operating systems, different browsers, which may cause some pages to not display properly in a browser, but can bypass detection by disguising the UA.
http://download.csdn.net/detail/a56573016613/8015263
Android Image Browser Demo