Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- Fragment fragment = new YourFragment();
- Bundle bundle = new Bundle();
- Bundle.putString("data", "yourData");
- fragment.setArguments(bundle);
- ...
- @Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState) {
- String data = getArguments().getString("data");
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement