title: findViewById returns null for EditText
body: <p><code>findViewById</code> returns null for <code>EditText</code></p>
  
  <p><strong>Java Code:</strong></p>
  
  <pre><code>public class MainActivity extends Activity {
      private EditText editText;
      /**
       * Called when the activity is first created.
       */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          editText = (EditText) findViewById(R.id.etext);
          if (editText == null) {
              Log.v("editText", "booohooo");
          } else {
              Log.v("editText", "Success");
          }
  
          final Button button = (Button) findViewById(R.id.gobutton);
          button.setOnClickListener(new View.OnClickListener() {
  
              public void onClick(View v) {
                  if (editText != null) {
                      Log.v("editText", "is not NULL");
                  } else {
                      Log.v("editText", "is NULL :(");
                  }
  
                  // Perform action on click
                  if (editText != null) {
                      editText.getText();
                  } else {
                      Log.v("editText", "is NULL");
                  }
                  Log.v("url", editText.getText().toString().trim());
                  Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(editText.getText().toString().trim()));
                  startActivity(browserIntent);
              }
          });
      }
  }
  </code></pre>
  
  <p><strong>Xml Code</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical"&gt;
  
      &lt;TextView
          android_id="@+id/websiteurlheading"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="Enter web site URL" /&gt;
  
      &lt;EditText
          android_id="@+id/etext"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@id/websiteurlheading" /&gt;
  
      &lt;Button
          android:id="@+id/gobutton"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Enter" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Any help is appreciated.</p>