Giter VIP home page Giter VIP logo

Comments (7)

oarage avatar oarage commented on July 29, 2024 1

不好意思,我刚才写错了,这个问题解决了,
我exclude的module写错了,应该是appcompat-v7,我没有写"-v7"
正确的应该是:
implementation 'com.github.qingmei2:rximagepicker:2.1.2',{
exclude group: 'com.android.support', module: 'appcompat-v7'
}

from rximagepicker.

qingmei2 avatar qingmei2 commented on July 29, 2024

@oarage

请参考 #21

from rximagepicker.

qingmei2 avatar qingmei2 commented on July 29, 2024

再引用一下 @13kmsteady 的回复吧

这里以 wechat 主题为例,当我们在初始化 RxImagePicker 时,会调用以下代码:

private void initRxImagePicker() {
        rxImagePicker = new RxImagePicker.Builder()
                .with(this)
                .addCustomGallery(
                        WechatImagePicker.KEY_WECHAT_PICKER_ACTIVITY,
                        WechatImagePickerActivity.class,
                        new WechatConfigrationBuilder(MimeType.ofImage(), false)
                                .showSingleMediaType(true) // 是否显示单类型
                                .maxSelectable(9)
                                .countable(true)
                                .spanCount(4)
                                .countable(false)
                                .theme(R.style.Wechat)
                                .build()
                )
                .build()
                .create(WechatImagePicker.class);
    }

当我们在创建 WechatConfigrationBuilder 对象时,传入的参数是:MimeType.ofImage()。

在 RxImagePicker 的扩展库中,提供了有 ofAll,ofImage,ofVideo 选择。

如果想选择只显示图片,指定 MimeType.ofImage,再加上 showSingleMediaType(true) 即可。

注意:如果不添加 showSingleMediaType(true),显示单类型是不起作用的。

from rximagepicker.

oarage avatar oarage commented on July 29, 2024

哦,知道了,谢谢
那这个filter是做什么用的呢?

from rximagepicker.

qingmei2 avatar qingmei2 commented on July 29, 2024

API移植于Matisse,这里有一篇讲解,你可以参考下:

https://blog.csdn.net/qiaoshi96_bk/article/details/76164913

from rximagepicker.

qingmei2 avatar qingmei2 commented on July 29, 2024

@oarage

我很重视这个问题,您能加入QQ群 391638630 一起探讨吗?

from rximagepicker.

qingmei2 avatar qingmei2 commented on July 29, 2024

👍 感谢你的指出,这将会给后来的开发者带来更多的借鉴,那我就关闭issue了。

from rximagepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.