Animations for changing tabs in paged toggles mode should be defined in xml rather than created programmatically.