I have defined the following layout for the title bar in my android app.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
android:id = "@+id/CustomTitleRelativeLayout"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/titleTvCenter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="Center" />
<Button
android:id="@+id/clearcachebutton"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:text="@string/clear_cache_button_text" />
</RelativeLayout>
Here my button is not getting displayed completely. Can anyone help me where I'm going wrong.
The display is as follows:

In the title bar , as you can see the button Text is not shown correctly.