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.
精彩评论