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.
我的活动:A-->B-->C
当我开始活动 B 时,我想在 android 屏幕上显示 C 布局而不是 B 布局,我可以这样做吗?
谢谢
if you specify in the B Activity in the onCreate method:
this.setContentView(clayout);
you get the C layout in the B activity.
使用共享首选项在活动开始时附加一个值,在重新加载时检查它是否包含该变量跳过并加载该活动,否则从活动 A 开始