Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set text color has no effect #4

Closed
IlyaEremin opened this issue Jan 2, 2015 · 1 comment
Closed

set text color has no effect #4

IlyaEremin opened this issue Jan 2, 2015 · 1 comment

Comments

@IlyaEremin
Copy link
Contributor

For example:

bt.addPiece(new BabushkaText.Piece.Builder("please\n")
            .style(Typeface.BOLD)
            .textSize(35)
            .build());
bt.addPiece(new BabushkaText.Piece.Builder("change textcolor")
            .textSize(20)
            .build());
bt.display();

I get textview with black text colour (default color)
Then I call

bt.setTextColor(getResources().getColor(R.color.white));

And textColor remains black.
I understand what there is no built-in ability to change spannable text colour on the fly, but it's would be very helpful function.

@hboregio
Copy link
Owner

hboregio commented Jan 6, 2015

Merged.

@hboregio hboregio closed this as completed Jan 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants