Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how fix glide 3.8 GlideModule do not work. #5397

Open
maoai-xianyu opened this issue Apr 10, 2024 · 1 comment
Open

how fix glide 3.8 GlideModule do not work. #5397

maoai-xianyu opened this issue Apr 10, 2024 · 1 comment

Comments

@maoai-xianyu
Copy link

this is to easy code. but it do not work. i am crazy

public class MYGlideModule implements GlideModule {

@Override
public void applyOptions(Context context, GlideBuilder builder) {
    Log.e("-------", "applyOptions 设置");
    builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);
}

@Override
public void registerComponents(Context context, Glide glide) {
    Log.e("-------", "registerComponents 设置");
}

}

in AndroidManifest.xml

    <meta-data
        android:name="com.maoyan.events.myapplication.MYGlideModule"
        android:value="GlideModule" />

    <activity
        android:exported="true"
        android:label="@string/app_name"
        android:name=".MainActivity"
        android:theme="@style/Theme.MyApplication.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

wow, it do not work. do not load MYGlideModule. how to fixed?

@maoai-xianyu
Copy link
Author

fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant