code: public static Bitmap applyColor(Bitmap bitmap, int accentColor) {
  		int r = Color.red(accentColor);
  		int g = Color.green(accentColor);
  		int b = Color.blue(accentColor);
  		
  		int width = bitmap.getWidth();
  		int height = bitmap.getHeight();
  		int[] pixels = new int[width * height];
  		bitmap.getPixels(pixels, 0, width, 0, 0, width, height);
  		
  		for (int i=0; i<pixels.length; i++) {
  			int color = pixels[i];
  			int alpha = Color.alpha(color);
  			pixels[i] = Color.argb(alpha, r, g, b);
  		}
  		return Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888);
  	}
docs: Creates a copy of the bitmap by replacing the color of every pixel
  by accentColor while keeping the alpha value.
  @param bitmap The original bitmap.
  @param accentColor The color to apply to every pixel.
  @return A copy of the given bitmap with the accent color applied.