@@ -0,0 +1,921 @@
+package cn.diaovision.omnicontrol.widget.adapter;%0A%0Aimport android.support.v4.app.Fragment;%0Aimport android.support.v4.app.FragmentManager;%0Aimport android.support.v4.app.FragmentPagerAdapter;%0A%0Aimport java.util.List;%0A%0Aimport cn.diaovision.omnicontrol.view.ViewPagerFragment;%0A%0A/**%0A * Created by TaoYimin on 2017/5/22.%0A */%0A%0Apublic class VerticalFragmentPagerAdapter extends FragmentPagerAdapter %7B%0A    List%3CViewPagerFragment%3E list;%0A%0A    public VerticalFragmentPagerAdapter(List%3CViewPagerFragment%3E list, FragmentManager fm) %7B%0A        super(fm);%0A        this.list = list;%0A    %7D%0A%0A    /**%0A     * Return the Fragment associated with a specified position.%0A     *%0A     * @param position%0A     */%0A    @Override%0A    public Fragment getItem(int position) %7B%0A        return list.get(position);%0A    %7D%0A%0A    /**%0A     * Return the number of views available.%0A     */%0A    @Override%0A    public int getCount() %7B%0A        return list.size();%0A    %7D%0A%7D%0A

add vertical viewpager adapter