roeybh
roeybh

Reputation: 69

Starting actvity with animation when pressing listview item

I am trying to start an activity with activityOptions to animate transition when selecting item from listview activity. only startActivity(intent) method is available. (trying to call startActivity(intent,bundle) gives compile time error when called from onItemClick method of listview activity.

Any ideas how can i generate a transition effect when starting an activtiy if a list item from listview is selected?

Thanks.

My mistake. i didnot converted activityOption to bundle. Now its OK.

Upvotes: 1

Views: 385

Answers (1)

Nantaphop
Nantaphop

Reputation: 564

For me, I use overridePendingTransition(R.anim.slide, R.anim.slide2); something like this

Upvotes: 1

Related Questions