自定义活动的过渡动画的Android
我的应用程序的电流是活动A - > b活动 - >片段B 我想实现的活动过渡动画。我看了很多帖子上SO提有关使用overridependingtransition()和我已经实现在这些帖子提到的几乎所有的东西。不知怎的,动画不能正常工作。
The current flow of my app is Activity A -> Activity B ->Fragment B I am trying to implement Activity transition animation. I have read many posts on SO mentioning about using overridependingtransition() and I have implemented almost everything mentioned in these posts. Somehow the animation is not working.
我需要这个工作在Android 2.2即sdkversion 8
I need this to work on Android 2.2 i.e. sdkversion 8
这是在code:
Activity A
oncreate method
Intent detailIntent = new Intent(this, WordDetailActivity.class);
detailIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
detailIntent.putExtra(DbAdapter.KEY_ROWID, id);
startActivity(detailIntent);
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
@Override
protected void onPause() {
super.onPause();
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
}
Activity B
@Override
protected void onPause() {
// TODO Auto-generated method stub
super.onPause();
overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
}
这将是巨大的,如果有人也建议我执行活动的过渡任何其他方式高达Android 2.2的
It would be great if someone could also suggest me any alternative way to implement activity transitions upto android 2.2
这已经禁用了手机设置的动画手机不会显示活动的过渡动画......所以不要指望它。
Phones that have their animation disabled in the phone settings wont show the activity transition animations... so don't count on it.
另外,你不能改变这些用户设置。
Also, you can't change these users settings.