When it comes to types of Web pages, you often encounter the need to see the big picture, LightBox2 is the most excellent in many products, a jquery plug-in. Configuration is not in detail, today I would like to share the main: How to open a large picture, you can use the mouse wheel to zoom pictures,
1, modify the Lightbox source to support the wheel zoom
Supp
This example shows the picture rotation, mouse wheel scaling, mirroring, switching pictures Multiple effects, provided a detailed code, to share with you for your reference, the specific content as follows
Specific code:
Abc.js
eval (function (p, a, C, K, E, R) {
E = function (c) {return
(C
The above is the JS code to achieve picture rotation, mouse
GetView, the routine viewholder save state, the URL is stored in the ImageView tag, by comparing the URL value to reduce the number of UIL display to improve performanceUIL is a very good picture loading class third-party library, can help us in the development process of saving a lot of things, but if you want to use good also need to really study underResources:https://github.com/nostra13/Android-Universal-Image-Loader/issues/376Https://github.com/
performanceSetonscrolllistener (newtruetrue)); // two respectively to drag the drop-down bar and pause the load during the slideThe last is in the GetView, the routine viewholder save state, the URL is stored in the ImageView tag, by comparing the URL value to reduce the number of UIL display to improve performanceUIL is a very good picture loading class third-party library, can help us in the development process of saving a lot of things, but if you want to use good also need to really study u
Android uses universal image loader to draw pictures with rounded corners (i)
Is it difficult to draw a control with rounded corners? It seems not difficult. For a normal layout or widget, to draw the fillet, just set the background to the following drawable on the line. However, for a picture control ImageView, this method has no effect. To know why, you have to look at the Android source code. Fir
= (ImageView) Findviewbyid (R.id.iv_photo); Bt_hehe.setonclicklistener (new Onclicklistener () {@Overridepublic void OnClick (View v) {//TODO auto-generated Method Stubimageloader.getinstance (). DisplayImage (Url,iv_photo, Defaultoptions); URL as picture address, Iv_photo for ImageView Layout,}});} }This code can be implemented to load the network picture, import Image-loader jar package can beImage-loader
Overview :Android-universal-image-loader is an open-source UI component program that is designed to enable reusable asynchronous image loading, caching, and display. So, if you need this feature in your program, use it because you've encapsulated some classes and methods. In fact, writing a program in this area is still more troublesome, to consider many aspects of multi-threading, caching, memory overflow and so on. Feature Description:A: Multi-thre
This image of the asynchronous loading and caching of the class has been used by many developers, is one of the most common open source libraries, the mainstream application, the random anti-compilation of several fire projects, can see its figure.But some people do not know how to use this library how to configure, the information found on the Internet may be too little for the people just contact, below I will use the process I know the written down, I hope to help myself and others more in-de
The jar package usedIssue: OPTIONSM = new Displayimageoptions.builder (). Displayer (New Roundedbitmapdisplayer (20)). build (); here. Displayer (New Roundedbitmapdisplayer (20)) when setting the fillet error,. Displayer (New Simplebitmapdisplayer ()) so the normal display of the picture will not be an error.Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.Android uses pictures to load frames a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.