title: How to initialize Container(ViewGroup)?
body: <p>Automatically, in OnCreateView, there's:</p>
  
  <pre><code>  @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState) {
  </code></pre>
  
  <p>I want to initialize my variable as in the same way like OnCreateView in AsyncTask. 
  I was able to initialize these variable :</p>
  
  <pre><code>LayoutInflater inflater;
              ViewGroup container;
              inflater = (LayoutInflater) ctx
                      .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
              View rootView = inflater.inflate(R.layout.fragment_pager_list,
                      container, false);
  </code></pre>
  
  <p>However, i get the error that container isn't initialized! so how can i initialize it? Thanks</p>