android - How to create animation dynamically and add it to overridePendingTransition -


i want know how add animations created dynamically in java overridependingtransition.

i created custom animation in java.

animation anim = new scaleanimation(....); 

now want add animation overridependingtransition.

overridependingtransition(anim, anim); 

but error. says need have int. know can use r.anim.scaleanim created xml too. want create animation dynamically in java pivotx , pivoty values changed in code.

please me. thank you!


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -