Android Colored Vector Drawable
Use this library to change colors of your vector drawables easily from your code.
If you want to set a colored vector in Imageview:
DrawableHelper
.withContext(this)
.withColor(R.color.white)
.withDrawable(R.drawable.ic_search_24dp)
.tint()
.applyTo(mSearchItem);
If you want to set a colored vector as a ToolBar icon:
final Drawable drawable = DrawableHelper
.withContext(this)
.
评论0
最新资源