code: public static void colorizeToolbar(Toolbar toolbarView, int toolbarIconsColor, Activity activity) {
          final PorterDuffColorFilter colorFilter
                  = new PorterDuffColorFilter(toolbarIconsColor, PorterDuff.Mode.SRC_IN);
  
          for (int i = 0; i < toolbarView.getChildCount(); i++) {
              final View v = toolbarView.getChildAt(i);
  
              doColorizing(v, colorFilter, toolbarIconsColor);
          }
  
          //Step 3: Changing the color of title and subtitle.
          toolbarView.setTitleTextColor(toolbarIconsColor);
          toolbarView.setSubtitleTextColor(toolbarIconsColor);
      }
docs: Use this method to colorize toolbar icons to the desired target color
  
  @param toolbarView       toolbar view being colored
  @param toolbarIconsColor the target color of toolbar icons
  @param activity          reference to activity needed to register observers