[Android] mobile guard interface switching animation
Create the file tran in / RES / anim /_ out.xml
Add < translate > node
Set X-axis source coordinates Android: fromxdelta = "0"
Set X-axis destination coordinates Android: toxdelete = "- 100% P" entire parent form
Set Y-axis source coordinates Android: fromydelta = "0"
Set Y-axis destination coordinates Android: toydelta = "0"
Set the execution time Android: duration = "500" 500ms
Create the file tran in / RES / anim /_ in.xml
Add < translate > node
Set X-axis source coordinates Android: fromxdelta = "100% P" entire parent form
Set X-axis destination coordinates Android: toxdelete = "0"
Set Y-axis source coordinates Android: fromydelta = "0"
Set Y-axis destination coordinates Android: toydelta = "0"
Set the execution time Android: duration = "500" 500ms
In the activity jump page section
After the startactivity () and finish () methods
Call overridependingtransition() method, parameter: r.anim.xxx_ in,R.anim.yyyyy_ out
But on my simulator, when the activity moves out to the left, the screen is black. It's strange that I haven't found the reason for it for a long time
trans_ in.xml
trans_ out.xml
trans_ pre_ in.xml
trans_ pre_ out.xml