As pointed out by @clark, this can be changed using reflection:
private void disableAnimations() { try { int currentFlags = (Integer) mLayoutParams.getClass().getField("privateFlags").get(mLayoutParams); mLayoutParams.getClass().getField("privateFlags").set(mLayoutParams, currentFlags|0x00000040); } catch (Exception e) {
Pedro oliveira
source share