You need to change the height
of your titlebar.xml
to make sure it gets the amount needed so other Views
that this layout
is included in doesn't take up room that it needs. So change the height
to wrap_content
instead of a fixed dp
.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content" <!-- this guy here -->
android:layout_gravity="center_horizontal"
android:orientation="horizontal"
android:padding="@dimen/small_8dp" >