title: Gravity center not working in LinearLayout
body: <p>I have LinearLayout horizontal orientation.Height is 32 dp.I try to insert textview's text in center position,<a href="https://i.stack.imgur.com/j7D5b.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j7D5b.png" alt="but i have like this result"></a></p>
  
  <p>This is my source</p>
  
  <pre><code>               &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="32dp"
                      android:layout_marginLeft="16dp"
                      android:orientation="horizontal"
                      &gt;
  
                      &lt;ImageView
                          android:layout_width="32dp"
                          android:layout_height="32dp"
                          card_view:srcCompat="@mipmap/departure_icon"
                          android:id="@+id/departure_img"
                          android:layout_alignTop="@+id/departure_day_large"
                          android:layout_alignParentLeft="true"
                          android:layout_alignParentStart="true" /&gt;
                      &lt;TextView
                          android:id="@+id/departure_day_large"
                          android:layout_width="wrap_content"
                          android:layout_height="32dp"
                          android:text="28"
                          android:layout_marginLeft="5dp"
                          android:textColor="#4d4d4d"
                          android:gravity="center"
                          android:textSize="32dp"
                          android:layout_centerHorizontal="true" /&gt;
                  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>As you can see i can't insert 28 in center positon,both imageview and textview's height is 32 dp, and i would like to insert my textview center.How i can horizontal align with ImageView?</p>