code: private void configureCursorColor() {
      try {
        Field f = TextView.class.getDeclaredField("mCursorDrawableRes");
        f.setAccessible(true);
        f.set(et_filter, R.drawable.edit_text_cursor_color);
      } catch (Exception e) {
        Log.e(LOGTAG, "Error trying to change cursor color text cursor drawable to null.");
      }
    }
docs: Hack to change EditText cursor color even if the API level is lower than 12. Please, don't do
  this at home.