Closed jaydenyuhy closed 7 years ago
如果在改变tint颜色后,直接调用setImageDrawable()会判断传入的drawable跟已有的是否相同,如果相同则不会调用invalidate()方法重绘,需要手动调用invalidate()方法颜色才会自动更新。
如果在改变tint颜色后,直接调用setImageDrawable()会判断传入的drawable跟已有的是否相同,如果相同则不会调用invalidate()方法重绘,需要手动调用invalidate()方法颜色才会自动更新。