androidbuttonandroid-6.0-marshmallowtextcolorandroid-text-color

Android - How to set Text Color on a button with ✔ as text on Android M


On Android M

button.setText("✔");
button.setTextColor(Color.WHITE);

Does not work any idea why?

How can i get the ✔ white colored?


Solution

  • You can use unicode also for tick mark,Try to use ✓ with string and set it to your textview.