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.
我有五个选项卡都是单独的活动,我想在没有选项卡视图的情况下同步后重新加载一项活动
Intent intent = getIntent(); finish(); startActivity(intent);
如何在标签视图中执行
而不是重新启动您的活动,而是在单独的方法中声明初始化事物。然后在同步之后只需调用该方法来刷新您的活动。