老师,请问如果要把Fragment中的textview换成自己编写的page要怎么弄
public static VpFragment newInstance(String title) { Bundle bundle = new Bundle(); bundle.putString(BUNDLE_TITLE, title); VpFragment fragment = new VpFragment(); fragment.setArguments(bundle); return fragment; } 可以直接对根据这里的title值的不同,用if....else给fragment添加不同的page吗?求帮忙