由网友(心碎了无痕)分享简介:我想知道,如果一个 ColorFilter 可以采用XML来设置一个查看或者如果唯一的办法是使用 setColorFilter() Java编写的。I'd like to know if a ColorFilter can be set in the XML of a View or if the only wa...
我想知道,如果一个 ColorFilter
可以采用XML来设置一个查看
或者如果唯一的办法是使用 setColorFilter()
Java编写的。
I'd like to know if a ColorFilter
can be set in the XML of a View
or if the only way is to use setColorFilter()
in Java.
推荐答案
根据文档http://developer.android.com/reference/android/graphics/ColorFilter.html有没有相应的XML版本ColorFilter。
According to the documentation http://developer.android.com/reference/android/graphics/ColorFilter.html there is no corresponding xml version for ColorFilter.
我也搜索了与按键颜色和过滤器中的文档属性http://developer.android.com/reference/android/R.attr.html
I also searched for attributes in documentation with the keys 'color' and 'filter' http://developer.android.com/reference/android/R.attr.html
相关推荐
最新文章