Really confused how this works with fragment?
Opened this issue · 0 comments
ckdevrel commented
I really don't know how to pass data from activity to fragment using dart and henson in the following scenarios:
-
On click of navigation menu item where I will be using
fragmentTransaction.replace(R.id.fl_container, new SampleFragment()); method to load the fragment. -
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);