Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageView能否加个tint着色属性 #100

Closed
AIlll opened this issue Mar 21, 2018 · 3 comments
Closed

ImageView能否加个tint着色属性 #100

AIlll opened this issue Mar 21, 2018 · 3 comments

Comments

@AIlll
Copy link

AIlll commented Mar 21, 2018

左右的icon,我发现没有android:tint="@color/white"这个属性,有些地方同一个图标,需要显示不同颜色

@lygttpod
Copy link
Owner

@AIlll 可以获取对应的imageview对象例如stv.getLeftIconIV().setColorFilter();代码动态处理tint

@AIlll
Copy link
Author

AIlll commented Mar 21, 2018

@lygttpod 这样也行,我是觉得xml里会好一些.. 可以少写一些java代码。。

@lygttpod
Copy link
Owner

看下这个
属性过多导致无法预览的问题还没解决,所有目前有很多属性都是通过代码控制的,没有加到xml属性中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants