animate activity start in Android -
i need animate activity
when starts up. activity started baseadapter
class. tried using overridependingtransition()
can't seem use in on click event. how can on come this?
holder.userpic.setonclicklistener(new view.onclicklistener() { public void onclick(view v) { log.d(" ", " value " + obj.get(position).get_post_id()); intent appinfo = new intent("android.intent.action.profile"); appinfo.putextra("pk", obj.get(position).get_foodie_id()); context.startactivity(appinfo); overridependingtransition(r.anim.full_side_up,0); // cant use } });
you need attach context
as:
context.overridependingtransition(r.anim.full_side_up,0);
or can use transition in onresume
method inside new activity
:
@override public void onresume() { super.onresume(); overridependingtransition(r.anim.full_side_up,0); }
let me know if works.
Comments
Post a Comment