Android Wear DotspageIndicator changing the color of selected dot

陌路散爱 提交于 2019-12-11 12:34:02

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!