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.
有可能自己刷新一个片段吗?像一个活动
context.finish(); context.startActivity(context.getIntent());
我还没有测试过,但也许像
getActivity().getSupportFragmentManager().beginTransaction() .replace(R.id.the_fragment_container, new MyFragment()) .commit();