Created
October 20, 2016 09:03
-
-
Save kevalpatel2106/de101a4dd7d2f3f1a4cb1e22d1d078ba to your computer and use it in GitHub Desktop.
Glide ARGB_8888 config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta-data android:name="example.com.myanimation.GlideConfiguration" | |
android:value="GlideModule"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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