title: How can I keep a button as pressed after clicking on it?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4674940/android-how-do-i-keep-a-button-displayed-as-pressed-until-the-action-created-by">Android. How do I keep a button displayed as PRESSED until the action created by that button is finished?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a button, and I want that when I press it, it stays as pressed (with the green color on Froyo).</p>
  
  <p>Any help?</p>
  
  <pre><code>mycodes_Button = (Button) findViewById(R.id.mycodes);
  ...
  if (saved_Button.isPressed())
  {
      saved_Button.setFocusable(true);
  }
  </code></pre>
  
  <p>Something like this?</p>