I wanted to center the numeric keypad and remove the hardcoded "padding".
But using just
android:layout_centerHorizontal
="true"wasn't sufficient because the width was set to "fill_parent". The width needs to be changed to "wrap_content" to give the parent enough horizontal room to do the alignment of the linearlayout.