TextView would not horizontally center
- by theGreenCabbage
My layout is the following: 
<TextView
    android:id="@+id/display_city"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_above="@+id/pollenType"
    android:layout_alignParentBottom="true"
    android:layout_alignParentRight="true"
    android:layout_below="@+id/get_pollen_index"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    android:layout_marginTop="51dp"
    android:textSize="40sp" />
As you can tell, Philadelphia, PA is left-aligned. No matter what I change, whether it's centering horizontal and vertical to true, it stays left-aligned. 
I have tried changing the layout via the XML and graphical user interface. In the graphical user interface, it indeed is "centered", but it remains non-centered. My layout positions are consistent across all my textviews, so I am unsure as to why this particular TextView is not centered.