Ubah latar belakang tombol ditarik dalam kode tutup

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