title: Changing tint color of Android EditText programmatically
body: <p>I am trying to change the tinting color of an <code>EditText</code> View programmatically during runtime. Basically i want to change what you would usually apply as <code>?attr/colorControlNormal</code> like in the <a href="https://github.com/android/platform_frameworks_base/blob/android-wear-5.0.0_r1/core/res/res/drawable/edit_text_material.xml">default background drawable</a>.</p>
  
  <p>Changing the background tint does not correctly apply by just setting a <code>new ColorsStateList</code> with one color:</p>
  
  <p><code>editText.setBackgroundTintList( ColorStateList.valueOf( color ) );</code></p>
  
  <p>For one the result is applied to all <code>EditText</code> although the tint list is applied and internally mutates the drawable. Also the alpha as specified in the default background <a href="https://github.com/android/platform_frameworks_base/blob/android-wear-5.0.0_r1/core/res/res/drawable/edit_text_material.xml">1</a> is visible at the beginning.</p>
  
  <p>Here is the outcome of setting the tint color on just the first <code>EditText</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/7r3dN.png" alt="outcome of setting the tint color on just the first EditText"></p>
  
  <p>So my question would be: How can I properly apply the tint programmatically to an <code>EditText</code>?</p>