Lokasi:homepage > Kod kesan khas JS > Imej dan media

Lapisan pembesaran pemuatan gambar plugin lightbox skrin penuh yang kuat

2020-06-25 130jumlah tontonan
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;