@Keep
public void setFabBackgroundColor(int color) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
ColorStateList colorStateList = ColorStateList.valueOf(color);
for (int i = 0; i < getChildCount(); i++) {
View view = getChildAt(i);
if (view instanceof FloatingActionButton)
view.setBackgroundTintList(colorStateList);
}
}
}
FABLayout.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:ocreader
作者:
评论列表
文章目录