picasso
Introduction: square 开源的图片缓存
Other: 特点:(1)可以自动检测 adapter 的重用并取消之前的下载
(2)图片变换
(3)可以加载本地资源
(4)可以设置占位资源
(5)支持 debug 模式
(2)图片变换
(3)可以加载本地资源
(4)可以设置占位资源
(5)支持 debug 模式
Tags:
A powerful image downloading and caching library for Android
For more information please see the website
Download
Download the latest AAR from Maven Central or grab via Gradle:
implementation 'com.squareup.picasso:picasso:2.8'
or Maven:
<dependency>
<groupId>com.squareup.picasso</groupId>
<artifactId>picasso</artifactId>
<version>2.8</version>
</dependency>
Snapshots of the development version are available in Sonatype's snapshots
repository.
Picasso requires at minimum Java 8 and API 21.
ProGuard
If you are using ProGuard you might need to add OkHttp's rules: https://github.com/square/okhttp/#r8--proguard
License
Copyright 2013 Square, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.