dart icon indicating copy to clipboard operation
dart copied to clipboard

Really confused how this works with fragment?

Open ckdevrel opened this issue 7 years ago • 0 comments

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);

ckdevrel avatar May 01 '17 14:05 ckdevrel