Changing the default gravity at runtime isn't exactly obvious, so it makes sense to add a code sample.