我从GitHub下载了Pager Sliding Tab Strip个样本。我想创建一个WebView
。例如,点击Home将我带到我的主页并点击Top Paid转到我的论坛?抱歉我的新手问题,但我是新来的:)。感谢
public class MyPagerAdapter extends FragmentPagerAdapter {
private final String[] TITLES = { "Categories", "Home",
"Top Paid", "Top Free", "Top Grossing", "Top New Paid",
"Top New Free", "Trending" };
public MyPagerAdapter(FragmentManager fm) {
super(fm);
}
@Override
public CharSequence getPageTitle(int position) {
return TITLES[position];
}
@Override
public int getCount() {
return TITLES.length;
}
@Override
public Fragment getItem(int position) {
return SuperAwesomeCardFragment.newInstance(position);
}
}