摘要: 阅读:https://developer.android.com/training/animation/index.html接下来学学怎么自定义动画。首先学的是渐变,效果打开https://developer.android.com/training/animation/crossfade.html 就能看到了。在这里假设有两个页面交错渐变替换。首先,先获得两个view的引用,然后将要通过渐变显示的view隐藏,然后通过res文件的value来获得动画显示时间:public class CrossfadeActivity extends Activity { private View m... 阅读全文
posted @ 2013-11-05 21:26 yutoulck 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 阅读:https://developer.android.com/training/graphics/opengl/environment.html接下来学学怎么使用OpenGL。首先,在manifest里声明:还要声明支持,不支持的手机不会运行你的程序:代码:public class OpenGLES20 extends Activity { private GLSurfaceView mGLView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(save... 阅读全文
posted @ 2013-11-05 20:11 yutoulck 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 阅读:https://developer.android.com/training/displaying-bitmaps/index.htmlBitmap非常消耗内存,因此学会怎么处理它非常重要。有几点需要注意:1、安卓为每个系统分配16MB的内存使用,但这并不是一定的,有些限制会高点。2、Bitm... 阅读全文
posted @ 2013-11-05 16:53 yutoulck 阅读(261) 评论(0) 推荐(0) 编辑