Skip to content

Instantly share code, notes, and snippets.

@kevalpatel2106
Created October 20, 2016 09:03
Show Gist options
  • Save kevalpatel2106/de101a4dd7d2f3f1a4cb1e22d1d078ba to your computer and use it in GitHub Desktop.
Save kevalpatel2106/de101a4dd7d2f3f1a4cb1e22d1d078ba to your computer and use it in GitHub Desktop.
Glide ARGB_8888 config
<meta-data android:name="example.com.myanimation.GlideConfiguration"
android:value="GlideModule"/>
public class GlideConfiguration implements GlideModule {
@Override
public void applyOptions(Context context, GlideBuilder builder) {
// Apply options to the builder here.
builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);
}
@Override
public void registerComponents(Context context, Glide glide) {
// register ModelLoaders here.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment