FEATURE_CUSTOM_TITLE没法完全显示

FEATURE_CUSTOM_TITLE无法完全显示
今天,自定义了一个title,但是却无法正常显示,字只能显示一半。

代码如下:
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.request);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.request_title);

GOOGLE后,解决方案如下:

一 在themes里定义了一个theme:
<style name="themeTitle" parent="android:Theme">
<item name="android:windowTitleSize">60dip</item>item>
<item name="android:windowTitleBackgroundStyle">@+style/mywindowTitleBackground</item>
<item name="android:windowContentOverlay">@android:color/transparent</item>
</style>

二  在styles.xml定义相应的style:
<!-- 屏幕顶上的title -->
<style name="mywindowTitleBackground" parent="android:WindowTitleBackground">   
        <item name="android:background">@drawable/title_bar</item>       
    </style>

三  在Manifest.xml中定义相应的activity的Theme为  themeTitle

好了,打完收功!!