fix card header title vertical centering

Change-Id: Iedacbab89e337e09d60f39b931277e60c23618cb
diff --git a/res/layout/base_header_layout.xml b/res/layout/base_header_layout.xml
index 00988c0..f86ccf8 100644
--- a/res/layout/base_header_layout.xml
+++ b/res/layout/base_header_layout.xml
@@ -33,7 +33,7 @@
     <FrameLayout
         android:id="@+id/card_header_inner_frame"
         android:layout_width="wrap_content"
-        android:layout_height="wrap_content"/>
+        android:layout_height="match_parent"/>
 
 
     <!-- This is the Button Frame.
@@ -41,11 +41,10 @@
     <FrameLayout
         android:id="@+id/card_header_button_frame"
         style="@style/card.header_button_frame"
-        android:layout_centerInParent="true"
         android:layout_alignParentRight="true"
         android:layout_gravity="center_vertical"
         android:layout_width="wrap_content"
-        android:layout_height="wrap_content">
+        android:layout_height="match_parent">
 
         <!-- overflow button. It has a Popup Menu -->
         <ImageButton
diff --git a/res/layout/inner_base_header.xml b/res/layout/inner_base_header.xml
index dc767bb..99e7e1c 100644
--- a/res/layout/inner_base_header.xml
+++ b/res/layout/inner_base_header.xml
@@ -19,21 +19,19 @@
   -->
 <!-- This is the InnerContent of Header -->
 
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-              android:orientation="vertical"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:layout_width="wrap_content"
-              android:layout_height="wrap_content">
+              android:layout_height="match_parent">
 
 
     <!-- This is the base Inner View inside a CardHeader.
          You can customize it with your layout xml file and your CardHeader.
          You can populate your elements with CardHeader#setupInnerViewElements(android.view.ViewGroup, android.view.View) method -->
     <TextView
-        android:layout_centerInParent="true"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
-        android:layout_gravity="center_vertical"
         android:id="@+id/card_header_inner_simple_title"
-        style="@style/card.header_simple_title"/>
+        style="@style/card.header_simple_title"
+        android:layout_centerVertical="true"/>
 
-</LinearLayout>
+</RelativeLayout>