you can make use of ```android:layout_centerInParent="true"``` to replace the combination of ```android:layout_centerHorizontal="true"``` and ```android:layout_centerVertical="true"```.