亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

跳轉Activity時設置的動畫不起作用,能跳轉但效果,這是什么問題,跟版本有關系嗎?

跳轉Activity時設置的動畫不起作用,能跳轉但效果,這是什么問題,跟版本有關系嗎?

不吃香菜和芹菜 2016-08-04 11:38:11
這是activity中的代碼: Intent?intent=Intent(MainActivity.,MainActivity2.); startActivity(intent); overridePendingTransition(R.anim.,R.anim.); ; 這是xml配置文件: zoom_in.xml: <?xml?version="1.0"?encoding="utf-8"?> <set?xmlns:android="http://schemas.android.com/apk/res/android" ????android:interpolator="@android:anim/decelerate_interpolator"?> ?? ??<scale ????????android:duration="1000" ????????android:fromXScale="0.1" ????????android:fromYScale="0.1" ????????android:pivotX="50%" ????????android:pivotY="50%" ????????android:toXScale="1.0" ????????android:toYScale="1.0"?/> ??<alpha ????????android:duration="1000" ????????android:fromAlpha="0" ????????android:toAlpha="1.0"?/> </set> zoom_out.xml: <?xml?version="1.0"?encoding="utf-8"?> <set?xmlns:android="http://schemas.android.com/apk/res/android" ????android:interpolator="@android:anim/decelerate_interpolator" ????android:zAdjustment="top"?> ????<scale ????????android:duration="1000" ????????android:fromXScale="1.0" ????????android:fromYScale="1.0" ????????android:pivotX="50%p" ????????android:pivotY="50%p" ????????android:toXScale="0.5" ????????android:toYScale="0.5"?/> ????<alpha ????????android:duration="1000" ????????android:fromAlpha="1.0" ????????android:toAlpha="0"?/> </set>
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 3245 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號