(1)在用ProgressWheel里面的属性radius,与SwitchButton属性radius冲突了。
非常奇怪的一点,我都是使用Libary引入的,按照道理应该各自有各自的命名空间。
https://github.com/Todd-Davies/ProgressWheel
https://github.com/kyleduo/SwitchButton
最后改ProgressWheel的属性为pw_radius了,这样子不冲突了。这个方法不是很好。
(2)SwitchButton的.9.png不要放在hdpi下,要不然就显示的有问题的。
SwitchButton官网例子是放在xhdpi下。