开发者

window title text size

开发者 https://www.devze.com 2022-12-29 22:53 出处:网络
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 th

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

精彩评论

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