Android Wear DotspageIndicator 改变选定点的颜色 [英] Android Wear DotspageIndicator changing the color of selected dot

查看:30
本文介绍了Android Wear DotspageIndicator 改变选定点的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢在 Wear 的 Dotspageindicator 中更改所选点的颜色.我尝试使用 setColor() 和 setSelectedColor() 但颜色没有改变仍然是默认行为.

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.

推荐答案

我得到的解决方案是设置颜色,他们正在重绘视图而不更新油漆.

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.

这篇关于Android Wear DotspageIndicator 改变选定点的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆