title: how to change the background color of the setError() in android
body: <p>How can I change the background of the setError() method which I am using to display any error occurred in textview. I can change my font color but not the background color. </p>
  
  <p><a href="https://i.stack.imgur.com/7RxTX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7RxTX.png" alt="enter image description here"></a></p>
  
  <p>My java file:</p>
  
  <p>public class Testing extends AppCompatActivity {</p>
  
  <pre><code>EditText name,email,pass;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_testing);
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      name = (EditText)findViewById(R.id.input_name);
      email = (EditText)findViewById(R.id.input_email);
      pass = (EditText)findViewById(R.id.input_password);
  
      name.setError("Your name should not contain empty space");
  }
  </code></pre>
  
  <p>}</p>