Activity to Fragment Call in Android
EmployeeFragment fragment = new EmployeeFragment();
FragmentManager manager = getSupportFragmentManager();
FragmentTransaction transaction = manager.beginTransaction();
transaction.add(R.id.emp_container,fragment ,"Employee Fragment");
transaction.commit();
0 comments:
Post a Comment