private void updateView() { // TODO Auto-generated method stub MagicIconItem[] magicIconArray = getOrderByTypeIconArray(); // 获取排序后小高表数据 if (magicIconArray != null && magicIconArray.length > 0) { mMagicIconVpAdapter = new MagicIconVpAdapter(getChildFragmentManager(), getActivity(), magicIconArray); dvPoint.setDotCount(mMagicIconVpAdapter.getCount()); mViewPager.setAdapter(mMagicIconVpAdapter); } }
@Override public void onPageSelected(int position) { // TODO Auto-generated method stub dvPoint.selectDot(position); }