First, this demo will be gradually intact.
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvytu2ntczmde2njez/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvytu2ntczmde2njez/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
The 2nd picture is to move one line of effect.
The following is the principle of implementation:
Using fragmentactivity+ multiple viewpage+fragment,
The picture resource is Baidu's,
Display up to 2 images per fragment. Assuming that there are not enough 2 hidden extras, calculate the picture that each fragment should display when parsing the picture data
Image download tool directly using Universal-image-loader
Note the use of the Baidu API to obtain resources, assuming conn = (httpurlconnection) url.openconnection ();
Need to add Conn.setrequestproperty ("User-agent", "mozilla/4.0" (compatible; MSIE 5.0; Windows NT; Digext) ");
Suppose with httpclient httpclient = new Defaulthttpclient (); No need to add
Reasons such as the following:
The user agent Chinese name is the users agents, referred to as UA. It is a special string header that allows the server to identify the operating system and version number, CPU type, browser and version number, browser rendering engine, browser language, browser plugin, etc. used by the customer.
Some sites often infer UA to send different pages to different operating systems and different browsers. As a result, some pages may not display properly in a browser. But by disguising the UA can bypass the test.
This update added details page image support Zoom out. Gesture rotation and so on. Add partial Actibar Property
Click Back now is the picture recovery
For example, the following
Join the action to use the effect such as the following
Action use attention and knowledge Point code all have gaze
Update to here temporarily, wait for the work to continue intact
This example resource
http://download.csdn.net/detail/a56573016613/8015263
Android Image Browser Demo