Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
com.github.bumptech.glide:glide
Advanced tools
A fast and efficient image loading library for Android focused on smooth scrolling.
| View Glide's documentation | 简体中文文档 | Report an issue with Glide
Glide is a fast and efficient open source media management and image loading framework for Android that wraps media decoding, memory and disk caching, and resource pooling into a simple and easy to use interface.
Glide supports fetching, decoding, and displaying video stills, images, and animated GIFs. Glide includes a flexible API
that allows developers to plug in to almost any network stack. By default Glide uses a custom HttpUrlConnection
based
stack, but also includes utility libraries plug in to Google's Volley project or Square's OkHttp library instead.
Glide's primary focus is on making scrolling any kind of a list of images as smooth and fast as possible, but Glide is also effective for almost any case where you need to fetch, resize, and display a remote image.
For detailed instructions and requirements, see Glide's download and setup docs page.
You can download a jar from GitHub's releases page.
Or use Gradle:
repositories {
google()
mavenCentral()
}
dependencies {
implementation 'com.github.bumptech.glide:glide:4.16.0'
}
Or Maven:
<dependency>
<groupId>com.github.bumptech.glide</groupId>
<artifactId>glide</artifactId>
<version>4.16.0</version>
</dependency>
For info on using the bleeding edge, see the Snapshots docs page.
The specific rules are already bundled into the aar which can be interpreted by R8 automatically
Check out the documentation for pages on a variety of topics, and see the javadocs.
For Glide v3, see the wiki.
Simple use cases will look something like this:
// For a simple view:
@Override public void onCreate(Bundle savedInstanceState) {
...
ImageView imageView = (ImageView) findViewById(R.id.my_image_view);
Glide.with(this).load("https://goo.gl/gEgYUd").into(imageView);
}
// For a simple image list:
@Override public View getView(int position, View recycled, ViewGroup container) {
final ImageView myImageView;
if (recycled == null) {
myImageView = (ImageView) inflater.inflate(R.layout.my_image_view, container, false);
} else {
myImageView = (ImageView) recycled;
}
String url = myUrls.get(position);
Glide
.with(myFragment)
.load(url)
.centerCrop()
.placeholder(R.drawable.loading_spinner)
.into(myImageView);
return myImageView;
}
Version 4 is now released and stable. Updates are released periodically with new features and bug fixes.
Comments/bugs/questions/pull requests are always welcome! Please read CONTRIBUTING.md on how to report issues.
If you need to support older versions of Android, consider staying on Glide v3, which works on API 10, but is not actively maintained.
okhttp3-integration
, see the docs page.volley-integration
, see the docs page.CircleImageView
/CircularImageView
/RoundedImageView
are known to have issues with TransitionDrawable
(.crossFade()
with .thumbnail()
or .placeholder()
) and animated GIFs, use a BitmapTransformation
(.circleCrop()
will be available in v4) or .dontAnimate()
to fix the issue.ImageView
s as they require special resource optimizations (such as tiling) to work without OutOfMemoryError
s.Building Glide with gradle is fairly straight forward:
git clone https://github.com/bumptech/glide.git
cd glide
./gradlew jar
Note: Make sure your Android SDK has the Android Support Repository installed, and that your $ANDROID_HOME
environment
variable is pointing at the SDK or add a local.properties
file in the root project with a sdk.dir=...
line.
Follow the steps in the Build section to set up the project and then:
./gradlew :samples:flickr:run
./gradlew :samples:giphy:run
./gradlew :samples:svg:run
./gradlew :samples:contacturi:run
You may also find precompiled APKs on the releases page.
Follow the steps in the Build section to setup the project and then edit the files however you wish. Android Studio cleanly imports both Glide's source and tests and is the recommended way to work with Glide.
To open the project in Android Studio:
setting.gradle
For more details, see the Contributing docs page.
To report a specific problem or feature request, open a new issue on Github. For questions, suggestions, or anything else, email Glide's discussion group, or join our IRC channel: irc.freenode.net#glide-library.
Before submitting pull requests, contributors must sign Google's individual contributor license agreement.
Sam Judd - @sjudd on GitHub, @samajudd on Twitter
BSD, part MIT and Apache 2.0. See the LICENSE file for details.
This is not an official Google product.
FAQs
A fast and efficient image loading library for Android focused on smooth scrolling.
We found that com.github.bumptech.glide:glide demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.