title: Change Android EditText background color
body: <p>I am developing an Android app. There's this issue with the EditTexts, because in some devices the "background" is white (which is the way I want it), but on others is transparent, and makes the app less professional. Here's an image with the "white background":</p>
  
  <p><img src="https://i.stack.imgur.com/joFDK.png" alt="enter image description here"></p>
  
  <p>On other devices the edit texts that say "Yo" and "Casa" are transparent, so the words mix with the map and its pretty awful. <br>I have tried changing the background color in the android layout xml. The closest one was I believe @drawable/white, but slightly changes the position and size of the edit text, making them look like they're one and its even worst. 
  Here is an example:</p>
  
  <p><img src="https://i.stack.imgur.com/yrGUF.png" alt="enter image description here">
  <br>Is there a nice way to approach this problem? I read somewhere that an option was to add a white background image to the edit texts, but seemed like a lot of trouble.</p>
  
  <p><strong>UPDATE</strong>
  <br>
  I tried adding a background image, but its the same as changing the background color to any color using the android:background, the edit texts get like smaller or something. I added a blue "delimiter" to the image and this is the result:</p>
  
  <p><img src="https://i.stack.imgur.com/KUvlW.png" alt="enter image description here"></p>
  
  <p>But I want them like in the first picture, not so close one to another.</p>
  
  <p><p></p>
  
  <p>This would be the code of the edittext layout XML, the other one looks very similar. Only by adding the android:background tag changes from picture 1, to picture 3
       </p>
  
  <p><strong>SOLUTION</strong><br>
  To solve this what I did was set a background image and set its height in dp as follows:<br></p>
  
  <pre><code>&lt;EditText
          android:id="@+id/markerTitle"
          android:layout_width="wrap_content"
          android:layout_height="40dp"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/buttonModifymarker"
          android:ems="10"
          android:inputType="textPersonName"
          android:text="Título"
          android:background="@drawable/editwhite"
           &gt;
  </code></pre>