Coder Social home page Coder Social logo

Comments (15)

poplrz2 avatar poplrz2 commented on August 25, 2024 22

image

image

image

不用谢!

from matisse.

Julius-lq avatar Julius-lq commented on August 25, 2024 1

image

image

image

不用谢!

very nice

from matisse.

ZhuoJunErGe avatar ZhuoJunErGe commented on August 25, 2024 1

我的处理方式AlbumMediaCollection中加个方法

public void refreshLoad(@nullable Album target, boolean enableCapture) {
Bundle args = new Bundle();
args.putParcelable(ARGS_ALBUM, target);
args.putBoolean(ARGS_ENABLE_CAPTURE, enableCapture);
mLoaderManager.restartLoader(LOADER_ID, args, this);
}

MediaSelectionFragment中加个方法

public void refreshLoad(Album album) {
mAlbumMediaCollection.refreshLoad(album, selectionSpec.capture);
}
MatisseActivity 中onAlbumSelected(Album album) 方法进行处理

if (fragment == null) {
fragment = MediaSelectionFragment.newInstance(album);
getSupportFragmentManager()
.beginTransaction()
.replace(R.id.container, fragment, MediaSelectionFragment.class.getSimpleName())
.commitAllowingStateLoss();
} else {
fragment.refreshLoad(album);

}

完毕

from matisse.

lenganjan avatar lenganjan commented on August 25, 2024

see #812

from matisse.

poplrz2 avatar poplrz2 commented on August 25, 2024

image
image
image
不用谢!

我使用的是依赖方式,你这种操作是只能将Matisse下载到本地再修改?

是的啊,下载源码, 以模块的方式导入到项目里面

image

from matisse.

Darlun1024 avatar Darlun1024 commented on August 25, 2024

修改AlbumMediaCollection 里面的 LOADER_ID 就好了,每个collection都使用单独的LOADER_ID.

from matisse.

poplrz2 avatar poplrz2 commented on August 25, 2024

from matisse.

bsxy000 avatar bsxy000 commented on August 25, 2024

修改AlbumMediaCollection 里面的 LOADER_ID 就好了,每个collection都使用单独的LOADER_ID.

你这个修改的前提还是得下载到本地了,如果Author能更新一下这个lib就好了~

from matisse.

xybCoder avatar xybCoder commented on August 25, 2024

image

image

image

不用谢!

非常棒

from matisse.

poplrz2 avatar poplrz2 commented on August 25, 2024

from matisse.

funcodingdev avatar funcodingdev commented on August 25, 2024

我这边这样改,预览会崩溃

from matisse.

poplrz2 avatar poplrz2 commented on August 25, 2024

from matisse.

Coder-HuangBH avatar Coder-HuangBH commented on August 25, 2024

修改 MatisseActivity
image
image

from matisse.

poplrz2 avatar poplrz2 commented on August 25, 2024

from matisse.

poplrz2 avatar poplrz2 commented on August 25, 2024

from matisse.

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.