开发者

Do I have to use an animation to change an Android activity's view?

Everywhere I look online, it seems that I must use an a开发者_开发百科nimation to change views dynamically (like slide in, out). Do I have to do this, or can I simple just setContentView() on each new activity?

Thanks!


There's nothing to say you have to use an animation. Just create your intent object, start your activity with startActivity or startActivityForResult, and then call setContentView when it loads. No animation necessary.

HTH.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜