开发者

window title text size

HI,

I'd like to know what ki开发者_Go百科nd of attributes should I use in xml to set the window title text size ?


Following code will help to increase window title bar size and its text size. Hope this will help.

<style name="LargeTitleTheme">
    <item name="android:windowTitleSize">50dip</item>
    <item name="android:windowTitleStyle">@style/titleTextStyle</item>
   </style>

<style name="titleTextStyle" >
    <item name="android:textSize">20dip</item>
    <item name="android:textColor">#FFFFFF</item>
</style>

After declaring styles, apply this style in your application tag or activity tag from App Manifest.

<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/LargeTitleTheme">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜