android 3D相册效果

时间:2015-11-22 11:33:45
【文件属性】:
文件名称:android 3D相册效果
文件大小:966KB
文件格式:RAR
更新时间:2015-11-22 11:33:45
3d 相册 android 实现3D效果 倒影效果 private void transformImageBitmap(ImageView child, Transformation t, int rotationAngle) { mCamera.save(); final Matrix imageMatrix = t.getMatrix(); final int imageHeight = child.getLayoutParams().height; final int imageWidth = child.getLayoutParams().width; final int rotation = Math.abs(rotationAngle); mCamera.translate(0.0f, 0.0f, 100.0f); if (rotation < mMaxRotationAngle) { float zoomAmount = (float) (mMaxZoom + (rotation * 1.5)); mCamera.translate(0.0f, 0.0f, zoomAmount); } mCamera.rotateY(rotationAngle); mCamera.getMatrix(imageMatrix); imageMatrix.preTranslate(-(imageWidth / 2), -(imageHeight / 2)); imageMatrix.postTranslate((imageWidth / 2), (imageHeight / 2)); mCamera.restore(); }
【文件预览】:
GalleryFlow
----AndroidManifest.xml(745B)
----res()
--------layout()
--------drawable-ldpi()
--------drawable-mdpi()
--------drawable-hdpi()
--------values()
----proguard.cfg(1KB)
----src()
--------com()
----bin()
--------classes()
--------AndroidManifest.xml(745B)
--------res()
--------classes.dex(11KB)
--------coverflow.apk(327KB)
--------resources.ap_(319KB)
----.classpath(396B)
----assets()
----project.properties(361B)
----.settings()
--------org.eclipse.jdt.core.prefs(177B)
----.project(845B)
----gen()
--------com()
----lint.xml(53B)

网友评论

  • 不能读取内存卡里的照片啊
  • 很 炫 很好 不过还是有bug
  • 交过挺炫的