f2prateek/dart

Really confused how this works with fragment?

Opened this issue · 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);