Before onCreateView starts <p>In PageFragment; I inflate a layout in onCreateView. But I want to inflate this layout before onCreateView loads. It could be inflated one time / or for every fragment; not important. </p> <p>How can I achieve it ?</p> <pre><code>public class PageFragment extends Fragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.page_quiz, container, false); tv = (TextView) view.findViewById(R.id.Text); LinearLayout ll = (LinearLayout) view.findViewById(R.id.questionList); return view; } } </code></pre>