title: Why I can't connect XML layout file to source code in Android?
body: <p>I began to learn Android development and can't perform a simple thing. I have an activity_login.xml which defines couples of widgets (TextViews, buttons, etc.) and I want to change textview size programmatically. I' m trying to use R.id but Eclipse don't see my text view. Here what i've tried. TextView in res/layout/activity_login.xml file:</p>
  
  <pre><code>&lt;TextView
      android:id="@+id/login_text_view"
      android:layout_width="23"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/button_log"
      android:layout_alignParentTop="true"
      android:layout_alignRight="@+id/button_sign_up"
      android:layout_marginTop="34dp"
      /&gt;
  </code></pre>
  
  <p>And here I'm trying to connect to it in my <code>LoginActivity.java</code>:</p>
  
  <pre><code>final TextView loginTextView = (TextView) findViewById(R.id.login_text_view);
  </code></pre>
  
  <p>The problem Eclipse don't see neither <code>loginTextView</code> nor other widgets in xml file.</p>