Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何在一个带有几个选项卡的应用程序中导航,其中有几个选项卡,其中包含各种不同的 ui 元素,并且选项卡始终存在。在我开始的每一项活动中等等?
使用它来启动新的 Activity
View view = getLocalActivityManager().startActivity("tab1", new Intent(this,tab1.class) .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)) .getDecorView(); setContentView(view);