Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

start fragment from activity

FragmentManager manager = getFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
transaction.add(R.id.container,YOUR_FRAGMENT_NAME,YOUR_FRAGMENT_STRING_TAG);
transaction.addToBackStack(null);
transaction.commit();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #start #fragment #activity
ADD COMMENT
Topic
Name
8+6 =