relativelayout center vertical and horizontal code example Example: android studio centering textview in relativelayout android:layout_centerHorizontal="true"