Android小知识点

来源:互联网 发布:php 图片上传原理 编辑:程序博客网 时间:2024/05/22 02:21

不积跬步无以至千里:

1.activity切换效果:

overridePendingTransition(R.anim.fade, R.anim.hold);


void android.app.Activity.overridePendingTransition(int enterAnim, int exitAnim)


Call immediately after one of the flavors of startActivity(Intent) orfinish to specify an explicit transition animation to perform next.

Parameters:
enterAnim A resource ID of the animation resource to use for the incoming activity. Use 0 for no animation.
exitAnim A resource ID of the animation resource to use for the outgoing activity. Use 0 for no animation.

2.Title效果设置:

详见:http://www.cnblogs.com/salam/archive/2010/11/30/1892143.html


0 0
原创粉丝点击