美文网首页
BottomNavigationView设置按钮和字体颜色

BottomNavigationView设置按钮和字体颜色

作者: yyg | 来源:发表于2020-01-04 18:12 被阅读0次
        int[] colors = new int[]{getResources().getColor(R.color.black),
                getResources().getColor(R.color.themeColor)
        };
        ColorStateList csl = new ColorStateList(states, colors);
        bottomNavigationView.setItemTextColor(csl);
        bottomNavigationView.setItemIconTintList(csl);

相关文章

网友评论

      本文标题:BottomNavigationView设置按钮和字体颜色

      本文链接:https://www.haomeiwen.com/subject/zrbxwctx.html