title: My findViewById() returns null, but it shouldn't
body: <p>My <code>findViewById</code> returns null, but it shouldn't.
  As you'll see, the button is in the same XML file.</p>
  
  <p>And calling <code>getActivity()</code> makes no difference at all </p>
  
  <p>Here's my <code>onCreateView</code>:</p>
  
  <pre><code>    @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState) {
          View rootView = inflater.inflate(R.layout.fragment_main, container,
                  false);
  
      Button  request = (Button) getView().findViewById(R.id.button_request);
  
      return rootView;
      }
  </code></pre>
  
  <p>And here's my <code>fragment_main.xml</code>:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/container_relative"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/white"
      tools:context="br.com.igor.MainActivity$PlaceholderFragment" &gt;
  
      &lt;TextView
          android:id="@+id/servic"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_margin="15dp"
          android:layout_marginBottom="0dp"
          android:paddingTop="15dp"
          android:text="Sample instructions" /&gt;
  
      &lt;Button
          android:id="@+id/button_request"
          style="@style/button_default"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:padding="15dp"
          android:layout_below="@id/servic"
          android:text="Request" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>