title: Two buttons use the same background image
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/13507768/i-have-two-buttonsbtn1-btn2-the-btn2-will-randomly-change-when-i-change-backg">i have two buttons:“btn1,btn2”,the btn2 will randomly change when i change backgound of btn1 alpha</a>  </p>
  </blockquote>
  
  
  
  <p>In my app,I have two buttons (btn1 and btn2)use the same background image (pic1),When I change  the background's transparent of btn1.The background of btn2 change occasionally,and random.that's very odd.would anyone help me find the problem?thanks.</p>
  
  <p>this is the code of changing background in <code>OnTouch</code>.when change one button's background to translucence,the other wil be influence .</p>
  
  <pre><code>TextView tv = (TextView) v;
  int color = tv.getCurrentTextColor();
  int r = (color) &amp; 0xFF;
  int g = (color &gt;&gt; 8) &amp; 0xFF;
  int b = (color &gt;&gt; 16) &amp; 0xFF;
  int a = (color &gt;&gt; 24) &amp; 0xFF;
  tv.setTextColor(Color.argb(50, r, g, b));
  </code></pre>
  
  <p>how to avoid them affect each other?</p>