title: findViewById not working for an include?
body: <p>I have an include like:</p>
  
  <pre><code>&lt;include
      android:id="@+id/placeHolder"
      layout="@layout/test" /&gt;
  </code></pre>
  
  <p>The include layout looks like (test.xml):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;FrameLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/outer"
      ... &gt;
  
      &lt;ImageView
          android:id="@+id/inner"
          ... /&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>I can't seem to find the inner ImageView with id="inner" at runtime:</p>
  
  <pre><code>ImageView iv = (ImageView)findViewById(R.id.inner);
  if (iv == null) {
      Log.e(TAG, "Not found!");
  }
  </code></pre>
  
  <p>Should I be able to find it? It seems like since it's using an "include", the normal findViewById method does not work.</p>
  
  <p>---------- Update ----------------</p>
  
  <p>So I can find the id assigned to the include:</p>
  
  <pre><code>View view = findViewById(R.id.placeHolder); // ok
  </code></pre>
  
  <p>but I can't find any of its children by id like:</p>
  
  <pre><code>view.findViewById(R.id.outer); // nope
  view.findViewById(R.id.inner); // nope
  </code></pre>
  
  <p>same as the original if I try searching for them directly like:</p>
  
  <pre><code>findViewById(R.id.outer); // nope
  findViewById(R.id.inner); // nope
  </code></pre>
  
  <p>Do ids just get stripped off of  elements at runtime maybe?</p>
  
  <p>Thanks</p>