Foursquare android应用程序的现有库再现zoom-in imageView效果?
问题描述:
我正在搜索一个库或现有的代码,它可以在Foursquare Android应用程序中找到放大/缩小的imageview效果。Foursquare android应用程序的现有库再现zoom-in imageView效果?
这里是我想再现的效果:https://drive.google.com/file/d/0B5uiJlSSk9dZclZENm1pZTVlaEk/edit?usp=sharing
这种效应产生两两件事:
- 缓慢变焦出的图像中;
- 而在同一时间,缓慢平移动画
你能帮助我吗?
谢谢
答
您需要在您的ImageView与动画播放动画教程参观 http://www.androidhive.info/2013/06/android-working-with-xml-animations/,http://developer.android.com/guide/topics/graphics/view-animation.html
通过调用
与您的ImageView实现这些动画ImageView image1 = (ImageView)findViewById(R.id.imageView1);
Animation animation1 = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.youranimation);
image1.startAnimation(animation1);