Fix viewport and animations in android < 4.4 (#14339)

Change-Id: I2b57f7051ada58749ac09d2fa230efa12bceb1d6