title: Android studio xml not allowing me to reference id resources
body: <p>I recently started using android studio (formerly eclipse) and when trying to create an xml page there have been problems referncing the id resrouces I've set up. 
  (Relative Layout)</p>
  
  <pre><code>&lt;Button
      android:text="@string/table"
      android:id="@+id/table"
      android:layout_width="fill_parent"
      android:layout_height="40dp"
      android:layout_alignParentBottom="true"
      /&gt;
  
  &lt;Button
      android:text="@string/menu"
      android:id="@+id/menu"
      android:layout_width="fill_parent"
      android:layout_height="40dp"
      android:layout_above="@id/table"
      /&gt;
  </code></pre>
  
  <p>But for some reason it says it cannot resolve the android:layout_above = "@id/table", so I checked in the R file and found that it exists under id.</p>
  
  <pre><code>public static final class id {
      public static final int action_settings=0x7f080003;
      public static final int menu=0x7f080001;
      public static final int order=0x7f080000;
      public static final int table=0x7f080002;
  }
  </code></pre>
  
  <p>I don't think it's the way I'm referencing it because the @id/table claims the resrouce doesn't exist even before I've run the app. </p>
  
  <p>Any help would be appreciated, thankyou. </p>