在FragmentPagerAdapter中获取某位置Fragment对象
public Fragment getFragmentAt(int position) {
String tag = "android:switcher:" + R.id.pager + ":" + getItemId(position);
return getSupportFragmentManager().findFragmentByTag(tag);
}
在FragmentPagerAdapter中获取某位置Fragment对象
public Fragment getFragmentAt(int position) {
String tag = "android:switcher:" + R.id.pager + ":" + getItemId(position);
return getSupportFragmentManager().findFragmentByTag(tag);
}