Fixes vertical centering of 'badge' notification types.

The linear layout that applies the centering gravity needed to be a child of a root layout element.

Fixes #2037