title: How to Remove Background Color of Button to get Default Background in Android
body: <p>I am Working on a Test Application in which every question is presented with Four options [those options are via Button]. When a User clicks a button and his answer is correct then background of that button Turns Green, and if his answer is incorrect it turns Red.
  What i want to do is Reset the Button Background on Next Question.</p>
  
  <p>After Searching a lot of People have asked the same Question and Accepted the answer as </p>
  
  <pre><code>  btnChoiceB.setBackgroundColor(0x00000000);
  </code></pre>
  
  <p>But the problem is, it turns the Whole Button Transparent, which is not my requirement. I Just want the default color Back. </p>
  
  <p>Do Not Suggest </p>
  
  <pre><code>btnChoiceB.setBackgroundColor(null);
  </code></pre>
  
  <p>as it does not work.</p>
  
  <p>This is What i want Back.
   <a href="https://i.stack.imgur.com/0ncBB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0ncBB.jpg" alt="This is What i want Back."></a></p>
  
  <p><strong>UPDATE/ANSWERED</strong></p>
  
  <p>As Suggested by quick learner, </p>
  
  <pre><code>btnChoiceB.setBackgroundResource(android.R.drawable.btn_default);
  </code></pre>
  
  <p>worked pretty cleanly.</p>