private float pixelsToSp(float px) {
    float scaledDensity = getContext().getResources().getDisplayMetrics().scaledDensity;
    return px / scaledDensity;
  }
Hack to change EditText cursor color even if the API level is lower than 12. Please, don't do
this at home.
lynx/src/main/java/com/github/pedrovgs/lynx/LynxView.java