billywei01 / easyalbum Goto Github PK
View Code? Open in Web Editor NEWAn easy to use media image and video selector for Android.
Home Page: https://juejin.cn/post/7215163152907092024
License: MIT License
An easy to use media image and video selector for Android.
Home Page: https://juejin.cn/post/7215163152907092024
License: MIT License
我的手机相机拍出来的照片,缩略图显示的方向是正常的,但在预览大图页面显示的图片旋转了90°
如题,支持直接在相册首位添加拍照或录像选项么?
如题,有个需求是在需要监听 album 的关闭,当然这个可以特殊处理。但是如果加上 ActivityResultLauncher 支持最好,可以自定义 ActivityResultContract,在 ActivityResultContract 中增加启动 album 时的参数。
io/github/album/AlbumActivity.java:162
mediaRv.setItemAnimator(AlbumConfig.itemAnimator);
这里的ItemAnimator是一个静态引用,在内部ItemAnimator又会通过ItemAnimatorListener反向持有RecyclerView
public void setItemAnimator(@Nullable ItemAnimator animator) {
if (mItemAnimator != null) {
mItemAnimator.endAnimations();
mItemAnimator.setListener(null);
}
mItemAnimator = animator;
if (mItemAnimator != null) {
mItemAnimator.setListener(mItemAnimatorListener);
}
}
也就是mItemAnimatorListener
要能在加一个拍照,就齐活了,嘿嘿
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.