title: How to set padding in styles for textviews in android?
body: <p>In my android app, I want to create a style with has a padding property. I am using this:</p>
  
  <pre><code>&lt;style name="title_numbering"&gt;
      &lt;item name="android:padding"&gt;20dp&lt;/item&gt;
      &lt;item name="android:textColor"&gt;#b60000&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>java:</p>
  
  <pre><code>    TextView num = new TextView(this);
      num.setText(String.format("%d", index+1));
      num.setTextAppearance(this, R.style.title_numbering);
  </code></pre>
  
  <p>The textcolor seems to work, but the padding does not.</p>
  
  <p>Does anyone know how to fix this?</p>
  
  <p>Thanks.</p>