对于片段,我创建了一个要访问的自定义类,但现在我想使用eclipse隐藏图像而不是工具栏。
public Fragment getItem(int position) {
switch (position) {
case 0:
fragmentManager = getActivity().getSupportFragmentManager();
case 1:
fragmentManager = getActivity().getSupportFragmentManager();
case 2:
fragmentManager = getActivity().getSupportFragmentManager();
break;
}
SamplFragment defaultFragment = SamplFragment.newInstance(position, offerListData);
return defaultFragment;
}