mam dwa przyciski: „btn1, btn2”, btn2 zmieni się losowo, gdy zmienię backgound btn1 alfa

Mam dwa przyciski:btn1, btn2. Są one używane z tym samym obrazem tła:pic1.png. Kiedy zmieniłem tło pierwszego przycisku:btn1 wOnTouch zdarzenie, kod jest następujący

onTouch_Action(View v, MotionEvent event) {
    if (event.getAction() == MotionEvent.ACTION_DOWN) {
        TextView tv = (TextView) v;
        int color = tv.getCurrentTextColor();
        int r = (color) & 0xFF;
        int g = (color >> 8) & 0xFF;
        int b = (color >> 16) & 0xFF;
        int a = (color >> 24) & 0xFF;
        tv.setTextColor(Color.argb(50, r, g, b)); //The other uses the same         background image buttons may also change
    } else if (event.getAction() == MotionEvent.ACTION_UP) {
        int color = tv.getCurrentTextColor();
        int r = (color) & 0xFF;
        int g = (color >> 8) & 0xFF;
        int b = (color >> 16) & 0xFF;
        int a = (color >> 24) & 0xFF;
        tv.setTextColor(Color.argb(255, r, g, b)); //The other uses the same         background image buttons may also change

    }
}

Drugi przycisk:btn2, tło może być również zmienione, a zmiany losowe. Jak uniknąć zmian drugiego przycisku?

questionAnswers(2)

yourAnswerToTheQuestion