Skip to content Skip to sidebar Skip to footer

Refresh Fragment Him Self

It's possible refresh an fragment him self? Like an activity context.finish(); context.startActivity(context.getIntent());

Solution 1:

I haven't tested, but maybe something like

getActivity().getSupportFragmentManager().beginTransaction()
                .replace(R.id.the_fragment_container, new MyFragment())
                .commit();

Post a Comment for "Refresh Fragment Him Self"