安卓开发关于ActionBar,Fragment,ViewPager的问题

ActionBar要用android.app.ActionBar的包,ViewPager要用android.support.v4.view.View
Pager的包,Fragment如果是用android.support.v4.app.Fragment,那么ActionBar.TabListener里的onTabSelected方法就出问题,Fragment如果是用android.app.Fragment,public Fragment getItem(int index){ return mfrag.get(index);}就有问题,求大神指教我应该怎么做?