如何手动调用onCreateView()

时间:2015-07-09 06:58:28

标签: android android-fragments

我想在片段中手动调用onCreateView() 。可能吗?

1 个答案:

答案 0 :(得分:-3)

只需写下你的片段:

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
...
}