Viewpager+PagerSlindingTabstib实现
适配器继承fragmentpageradpater
重写getPagerTitle();
1.倒库(v4包,库的路径都要和项目中保持一致)
2.代码实现 //xml文件中全类名倒库
PagerSlidingTabStrip pagerSlidingTabStrip = (PagerSlidingTabStrip) view.findViewById(R.id.pst);
MypagerAdpater adpater = new MypagerAdpater(getActivity().getSupportFragmentManager(), str);
pager.setAdapter(adpater);
pagerSlidingTabStrip.setViewPager(pager);
适配器继承fragmentpageradpater
重写getPagerTitle();
1.倒库(v4包,库的路径都要和项目中保持一致)
2.代码实现 //xml文件中全类名倒库
PagerSlidingTabStrip pagerSlidingTabStrip = (PagerSlidingTabStrip) view.findViewById(R.id.pst);
MypagerAdpater adpater = new MypagerAdpater(getActivity().getSupportFragmentManager(), str);
pager.setAdapter(adpater);
pagerSlidingTabStrip.setViewPager(pager);