Comments (3)
缩略图其实是显示在一个单独的 View 上的,能否做两个 View 的切换动效?
from bigimageviewer.
@Piasy
抱歉早上才看到。。
谢谢。
已改完。修改了BigImage的onFinish
不知道会不会写的太啰嗦了。如下0.0
@WorkerThread
@Override
public void onFinish() {
post(new Runnable() {
@Override
public void run() {
AnimationSet set = new AnimationSet(true);
AlphaAnimation animation = new AlphaAnimation(1, 0);
animation.setDuration(500);
animation.setFillAfter(true);
set.addAnimation(animation);
if (mThumbnailView != null) {
mThumbnailView.setAnimation(set);
}
if (mProgressIndicator != null) {
mProgressIndicator.onFinish();
}
if (mProgressIndicatorView != null) {
mProgressIndicatorView.setAnimation(set);
}
animation.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation animation) {
}
@Override
public void onAnimationEnd(Animation animation) {
if (mThumbnailView != null) {
mThumbnailView.setVisibility(GONE);
}
if (mProgressIndicatorView != null) {
mProgressIndicatorView.setVisibility(GONE);
}
}
@Override
public void onAnimationRepeat(Animation animation) {
}
});
}
});
}
from bigimageviewer.
我觉得没啥问题,你提一个 PR 吧 :)
from bigimageviewer.
Related Issues (20)
- Why cannot download 1.2.9 ? HOT 1
- saveImageIntoGallery not working on Android 11 HOT 3
- Set Small image Zoomable HOT 2
- Some important zoom feature didn't find yet HOT 1
- Error inflating class com.github.piasy.biv.view.BigImageView HOT 1
- Choose MIME type for saving image? HOT 5
- Can not load Bitmap HOT 1
- 小图可以设置充满屏幕宽度吗。现在是自适应大小,所以显着很小 HOT 3
- How to quit zoom mode? HOT 1
- Failed to resolve: com.github.piasy:GlideImageLoader HOT 1
- 关于使用代理加载图片的问题 HOT 1
- 使用体验
- 请问可以获取BigImageView的bitmap吗? HOT 1
- 请问支持图片的旋转吗 HOT 1
- Scaling GIF images HOT 1
- 加水印 HOT 1
- Clear (previously) loaded image from BigImageView in RecyclerView's view holder HOT 1
- 求支持avif格式图片 HOT 2
- 共享元素动画 HOT 1
- How can I get the zoom in and zoom out ratio that occurs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigimageviewer.