I have a pretty simple problem. I'm creating several buttons with a method in an activity. However the text colour just remains in the standard colour (grey). I defined the following in my method:
Button b = new Button(this);
b.setTextColor(R.color.red);
b.setText("Some text");
Is anyone aware of this problem and can help me out? By googling I read sth. about spannable. However it seems that this isn't working with the text of buttons.