使用setTag
时,如何Fragment
FragmentPagerAdapter
。任何建议
public class MainFragmentAdapter extends FragmentPagerAdapter {
public Fragment getItem(int arg0) {
switch (arg0) {
case 0:
SettingsFragment fr = new SettingsFragment();
<击> fr.setTag(); 击>
return fr;
...
....
...
}