title: findViewById returning null after being inflated
body: <p>I've narrowed it down to three lines of Java code:</p>
  
  <pre><code>public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());
      View view = layoutInflater.inflate(R.layout.item_tile, parent, false);
      System.out.println(view.findViewById(R.id.text_view));
      return new ViewHolder(view);
  }
  </code></pre>
  
  <p>And here's the corresponding XML code:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent"&gt;
  
  &lt;TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:id="@+id/text_view"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>This prints null. Why does it print null? Why can't it find the text view?</p>
  
  <p>Yes, the XML file is named "item_tile.xml", no there isn't another one named the same thing somewhere. I've tried creating new files and throwing this code in there but I still have this exact same error. Why is findViewById(...) failing?</p>