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:
<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"
/>
And here I'm trying to connect to it in my LoginActivity.java
:
final TextView loginTextView = (TextView) findViewById(R.id.login_text_view);
The problem Eclipse don't see neither loginTextView
nor other widgets in xml file.