Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

navigate from one fragment to another android

Fragment fragment = new tasks();
FragmentManager fragmentManager = getActivity().getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
fragmentTransaction.replace(R.id.content_frame, fragment);
fragmentTransaction.addToBackStack(null);
fragmentTransaction.commit();
 
PREVIOUS NEXT
Tagged: #navigate #fragment #android
ADD COMMENT
Topic
Name
3+8 =