I've been trying to get the chronometer (child of textview) to center in this horizontal linear layout for a few hours. I've looked on here and saw everyone mentioning the gravity attribute. I changed this and experimented with other attributes to no success. Below is the XML from android studio. What am I doing wrong?
<LinearLayout
android:id="@+id/statusDisplay"
android:layout_width="match_parent"
android:layout_height="20dp"
android:orientation="horizontal">
<TextView
android:id="@+id/score"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:gravity="left"
android:text="Score" />
<Chronometer
android:id="@+id/timer"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:gravity="center_vertical" />
</LinearLayout>