BottomNavigationView设置按钮和字体颜色

        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设置按钮和字体颜色)