title: XAMARIN: How to FindViewById<TabWidget> ??? (Resource not Found)
body: <p>I'm getting a resource not found error when I try to do this:</p>
  
  <pre><code>    TabWidget tabz = FindViewById&lt;TabWidget&gt;(Resource.Id.tabs);
  </code></pre>
  
  <p>compiler doesn't see the TabWidget even when it's clearly labeled by id in my Main.axml file</p>
  
  <p>Error CS0117 'Resource.Id' does not contain a definition for 'tabs'</p>
  
  <p>Here's my full code:</p>
  
  
  
  <pre><code>&lt;LinearLayout
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:padding="5dp"&gt;
  &lt;TabWidget
      android:id="@android:id/tabs"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:visibility="visible" /&gt;
  &lt;FrameLayout
      android:id="@android:id/tabcontent"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:padding="5dp" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>EDIT, sorry, this is the full code... I don't know why I didn't copy this last time.  The above example is missing TabHost</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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;TabHost
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:minWidth="25px"
          android:minHeight="25px"
          android:id="@+id/tabHost1"&gt;
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"
              android:id="@+id/linearLayout1"&gt;
              &lt;TabWidget
                  android:id="@android:id/tabs"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content" /&gt;
              &lt;FrameLayout
                  android:id="@android:id/tabcontent"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/TabHost&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>How can I force the compiler to recognize my tabs id? I've tried rebuilding the resource.designer.cs .. putting the declaration of TabWidget inside all of the activities... nothing works. My C# can't see the TabWidget</p>
  
  <p>full project can be found here:</p>
  
  <p><a href="https://github.com/hexag0d/BitChute_Mobile_Android_a2" rel="nofollow noreferrer">https://github.com/hexag0d/BitChute_Mobile_Android_a2</a></p>
  
  <p>I also tried this and it didn't work
  <a href="https://stackoverflow.com/questions/23955548/xamarin-android-resource-file-not-found">Xamarin Android Resource file not found</a></p>
  
  <p>thanks, in advance</p>