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