android4.0中用什么来代替TabActivity?

androider 发布于 2012/07/16 11:44
阅读 11K+
收藏 0

代码中用到Tabactivity时显示该类已被弃用,那androi4.0是用什么来替代Tabactivity?

加载中
0
迷途d书童
迷途d书童
FragmentActivity
0
王家栋

TabActivity has been deprecated, cause it is subclass of ActivityGroup, which also has been deprecated.

ActityGroup has been deprecated, and instead Fragment has been introduced and suggested. As using Fragments is easier and more flexible than ActivityGroup. It also enable android components to have a homogeneous pattern.

返回顶部
顶部