I tried the below snippet but did not work below API 21:
editText.getBackground().setColorFilter(editTextColor, PorterDuff.Mode.SRC_IN);
editText.getBackground().mutate().setColorFilter(editTextColor,PorterDuff.Mode.SRC_ATOP);
So please suggest me how can I change for API 14.
source
share