Comment choisir la couleur de fond pour textview dans le code?

J'ai mis textview arrière-plan de l'égalité transparent, et maintenant je veux changer l'arrière-plan dans le code.
lors d'un clic sur mybtn (c'est un bouton) changement textview fond, comment faire?

code:

Button btn = (Button) findViewById(R.id.btn_dialog);
btn.setBackgroundColor(color.transparent);
btn.setOnClickListener(new OnClickListener() {

   @Override
   public void onClick(View v) {
    TextView txt = (TextView) findViewById(R.id.txt);
    txt.setBackgroundColor(??????);

    Toast.makeText(getBaseContext(), "this test is ok!", Toast.LENGTH_SHORT).show();
   }
});

OriginalL'auteur omid nazifi | 2011-10-17