Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Really confused how this works with fragment? #156

Open
ckdevrel opened this issue May 1, 2017 · 0 comments
Open

Really confused how this works with fragment? #156

ckdevrel opened this issue May 1, 2017 · 0 comments

Comments

@ckdevrel
Copy link

ckdevrel commented May 1, 2017

I really don't know how to pass data from activity to fragment using dart and henson in the following scenarios:

  1. On click of navigation menu item where I will be using
    fragmentTransaction.replace(R.id.fl_container, new SampleFragment()); method to load the fragment.

  2. In ViewPagerAdapter for tab change implementation like

ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager());
adapter.addFrag(new DummyFragment(), "ONE");
adapter.addFrag(new DummyFragment(), "TWO");
adapter.addFrag(new DummyFragment(), "THREE");
viewPager.setAdapter(adapter);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant