Ubah latar belakang tombol yang dapat ditarik dalam kode

if(v.getBackground().getConstantState().equals(getResources().getDrawable(R.drawable.bg_btn_black_outline).getConstantState()))
        {
            v.setBackgroundResource(R.drawable.bg_btn_black);
            s = ( (TextView) v ).getText().toString();
        } else {
            v.setBackgroundResource(R.drawable.bg_btn_black_outline);
        }
</ProgAli>