title: Android: EditText not appearing when setting styles programmatically
body: <p>I need to create UI controls programmatically and my EditText is not appearing on the screen. </p>
  
  <p>This is a sort of skeleton xml in which I will add table rows programmatically. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
  
      &lt;LinearLayout android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:focusable="true"
          android:focusableInTouchMode="true"
          android:orientation="vertical"
          android:paddingLeft="20dp"
          android:id="@+id/main_layout"&gt;
  
          &lt;TableLayout android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginTop="50dp"
              android:id="@+id/myTable" &gt;
  
          &lt;/TableLayout&gt;
  
  
      &lt;/LinearLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>This is the java code in my Activity, </p>
  
  <pre><code>TableLayout mainTable = (TableLayout) findViewById(R.id.myTable);
  TableRow row = new TableRow(this);
  
  TextView textView = new TextView(this);
  textView.setText("Text1");
  row.addView(textView);
  
  EditText editText = new EditText(this, null, R.style.editTextStyle);
  row.addView(editText);
  
  mainTable.addView(row);
  </code></pre>
  
  <p>My editTextStyle is the following, </p>
  
  <pre><code>&lt;style name="editTextStyle"&gt;
      &lt;item name="android:paddingTop"&gt;10dp&lt;/item&gt;
      &lt;item name="android:paddingLeft"&gt;7dp&lt;/item&gt;
      &lt;item name="android:textSize"&gt;27sp&lt;/item&gt;
      &lt;item name="android:layout_width"&gt;150dp&lt;/item&gt;
  &lt;item name="android:layout_height"&gt;50dp&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>The textView is appearing normally, but the editText isn't. Any ideas please?</p>