@Override public android.support.v4.app.Fragment getItem(int position) { Fragment f = new IndexFragment(); switch (position) { case 0: f = SiteFragment.newInstance(); break; case 1: f = PersonFragment.newInstance(); break; case 2: f = BasePntFragment.newInstance(); break; } // 增加标段ID参数 Bundle bundle = new Bundle(); bundle.putString("sectid", secNews.getSectid()); f.setArguments(bundle); return f; }