Location:Home > JS special effects code > Images and media

Powerful full-screen lightbox plugin image loading magnification layer

2020-06-25 172views
Fresco is an open source framework released by Facebook, which claims to be the strongest Android image loading library at present, with excellent performance in memory. Fresco's advantages: easy to use, low cost of learning; very powerful, very smooth to use, no worries about memory management, no need to worry about oom; with the effect of fade in when loading, it is easy to develop; when loading images, you can directly set loading animation in the layout, and so on, which greatly reduces the code amount; fresco's disadvantages: you must use fresco custom controls, if you need to replace them, If you want to replace other image loading frameworks, there will be some problems, such as the layout must be changed; there are too many methods, as many as 4K methods, which are the last straw of the camel for a larger project. The number of methods for the whole project exceeds 65K, so it has to be sub contracted. After the package, the whole project is 3M more. It's really big. You have to use fresco's image loading, Otherwise, it will be very difficult to get a simple bitmap in a cache;