ViewPager viewPager = (ViewPager) findViewById(R.id.pager);2. Get Fragment by tag
int id = viewPager.getCurrentItem();
Fragment frag = getFragmentManager().findFragmentByTag("android:switcher:"+R.id.pager+":"+id);Then you can access your fragment reference.
No comments:
Post a Comment