When creating a new Activity There are spaces that the button does not occupy, I need those spaces to be occupied.
In the root layout remove the padding:
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"