2012年4月15日

Android Gallery控件使用方法详解

摘要: 我们今天给大家讲的就是Gallery控件,这个控件在android当中是非常重要的,我们今天就给大家介绍一下3D的Gallery控件是怎么样来实现的。下面我们就来直接看看代码吧。1.扩展Gallery:public class GalleryFlow extends Gallery {private Camera mCamera = new Camera();//相机类private int mMaxRotationAngle = 60;//最大转动角度private int mMaxZoom = -300;////最大缩放值private int mCoveflowCenter;//半径值p 阅读全文

posted @ 2012-04-15 23:53 vus520 阅读(1885) 评论(0) 推荐(0) 编辑

ScrollView反弹效果的实现

摘要: View中也有scrollBy和scrollTo这两个方法,但是ScrollView对scrollTo进行重写 由于:public void scrollBy(int x, int y) { scrollTo(mScrollX + x, mScrollY + y); } View:public void scrollTo(int x, int y) { if (mScrollX != x || mScrollY != y) { int oldX = mScrollX; int oldY = mScro... 阅读全文

posted @ 2012-04-15 22:01 vus520 阅读(529) 评论(0) 推荐(0) 编辑

导航