问题
I like to change the color of selected dot in wear's Dotspageindicator. I tried using setColor() and setSelectedColor() but the color is not changing still default behavior.
I hope somebody can help me with this problem.
回答1:
I got the solution the problem is setting color they are redrawing the view without updating the paint.
To update the paint set the radius of the dot. It will redraw the view after updating the paint.
来源:https://stackoverflow.com/questions/34190595/android-wear-dotspageindicator-changing-the-color-of-selected-dot