title: Android : on changing EditText background color, EditText style getting changed
body: <p>Hi When I change the Background color of <code>EditText</code> of two <code>EditText</code> they are looking like both merging.</p>
  
  <p>My layout code goes like this `</p>
  
  <pre><code>&lt;EditText
      android:id="@+id/editText4"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:ems="10"
      android:hint="Text1"
      android:singleLine="true" /&gt;
  
  &lt;EditText
      android:id="@+id/editText1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:ems="10"
      android:hint="Text2"
      android:singleLine="true" &gt;
  &lt;/EditText&gt;
  
  &lt;AutoCompleteTextView android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:singleLine="true"
      android:imeOptions="actionNext"/&gt;
  
  &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content" &gt;
  
      &lt;EditText
          android:id="@+id/editText2"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:ems="10"
          android:hint="Text3"
          android:singleLine="true" /&gt;
  
  &lt;/LinearLayout&gt;
   &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content" &gt;
  
      &lt;EditText
          android:id="@+id/editText2"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:ems="10"
          android:hint="Text4"
          android:singleLine="true" /&gt;
  
  &lt;/LinearLayout&gt;
  
   &lt;Button
       android:id="@+id/button1"
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:text="Button" /&gt;
  </code></pre>
  
  <p>`</p>
  
  <p>and My Activity code goes like this</p>
  
  <pre><code>public class MainActivity extends Activity {
  
  EditText editText1, editText2, editText3, editText4;
  Button button;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      init();
  
      button.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
              editText1.setBackgroundColor(getResources().getColor(android.R.color.primary_text_dark_nodisable));
              editText3.setBackgroundColor(getResources().getColor(android.R.color.darker_gray));
  
          }
      });
  
  }
  
  private void init() {
      editText1 = (EditText) findViewById(R.id.editText1);
      editText2 = (EditText) findViewById(R.id.editText2);
      editText3 = (EditText) findViewById(R.id.editText4);
      button = (Button) findViewById(R.id.button1);
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Refer the attached Screen shots below </p>
  
  <p>Layout before clicking Button</p>
  
  <p><img src="https://i.stack.imgur.com/spyz5.png" alt="enter image description here"></p>
  
  <p>Layout after clicking Button</p>
  
  <p><img src="https://i.stack.imgur.com/ijs9C.png" alt="enter image description here"></p>