Skip to content

Fresco无法加载gif动图 #17

Description

@TellH

我试了一下,貌似不能加载gif动图。

        ImageView imageView = findViewById(R.id.imageView);
        ImageLoader.createImageOptions(imageView, url)
                .placeholder(R.mipmap.ic_launcher).build().show();
        // 初始化代码需要在Application中完成。
        ImageLoaderConfig config = new ImageLoaderConfig.Builder(LoaderEnum.FRESCO, new FrescoImageLoader())
                .maxMemory(40 * 1024 * 1024L)  // 配置内存缓存,单位为Byte
                .build();
        ImageLoaderManager.getInstance().init(this, config);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions