custom activity transition animation in Android -
the current flow of app activity -> activity b ->fragment b trying implement activity transition animation. have read many posts on mentioning using overridependingtransition() , have implemented mentioned in these posts. somehow animation not working.
i need work on android 2.2 i.e. sdkversion 8
this code:
activity 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); }
it great if suggest me alternative way implement activity transitions upto android 2.2
phones have animation disabled in phone settings wont show activity transition animations... don't count on it.
also, can't change these users settings.
Comments
Post a Comment