Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try{
- Fragment fragment = (Fragment) Class.forName("Fragment" + strMenuName + strSubMenuName).newInstance();
- getSupportFragmentManager().beginTransaction().replace(R.id.container, fragment).commit();
- } catch(ClassNotFoundException | IllegalAccessException | InstantiationException e) {
- e.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment