窗口标题文字大小 [英] window title text size

查看:110
本文介绍了窗口标题文字大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想知道我应该使用XML什么样的属性设置窗口的标题文字大小?

I'd like to know what kind of attributes should I use in xml to set the window title text size ?

推荐答案

随着code将有助于提高窗口标题栏大小和文本大小。希望这会有所帮助。

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">

这篇关于窗口标题文字大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆