title: onCreateView does not fired in Fragment
body: <p>At first the problem was getView() always returns null in my fragment . so as others offer I used a View in onCreateView  to get view like this : </p>
  
  <pre><code>     private  View vv ;
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
  {
      vv = inflater.inflate(R.layout.fragment_exam_page2, container, false); ;
      return  vv ;
  
  }
  </code></pre>
  
  <p>so I could use vv instead of getView() . But now I see that onCreateView does not get called at all ! 
  in my activity I do this : </p>
  
  <pre><code>    FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
      TwoLineOptionsFragment twoLineOptionsFragment = new TwoLineOptionsFragment();
              transaction.replace(R.id.fragment_answerContainer, twoLineOptionsFragment).commit();
  
              twoLineOptionsFragment.updateOptions(question.AnswerOptions) ;// my public function doing stuff ... 
  </code></pre>
  
  <p>so where is the problem ?</p>
  
  <p>EDIT : here is my function if matters : </p>
  
  <pre><code>    public  boolean updateOptions(ArrayList&lt;Exam.Question.Answer&gt; answers)
      {
      try
      {
  
  
          QuestionOptionView optionView = (QuestionOptionView)(vv.findViewById(R.id.option1)) ;
          //QuestionOptionView optionView = (QuestionOptionView)(getView().findViewById(R.id.option1)) ;
          optionView.setText(answers.get(0).AnswerText);
      return reue ;
      }
      // ... 
      }
  </code></pre>