简体   繁体   English

AndroidManifest.xml和样式

[英]AndroidManifest.xml and style

<activity android:name=".activity.MyHomePage" android:theme="@style/AppTheme.Light" android:label="New Tasks"/>

I have that Activity in my AndroidManifest.xml file. 我的AndroidManifest.xml文件中有该活动。 How do I set style on that android:label. 如何在android:label上设置样式。 I would like to set textsize and textcolor. 我想设置textsize和textcolor。

<style name="AppTheme.Light" parent="@android:style/Theme.Holo.Light">  
        <item name="android:windowBackground">@drawable/background</item>
        <item name="android:actionBarStyle">@style/ActionBarTextSize</item>
        <item name="android:windowTitleSize">14pt</item>
</style>

OR 要么

<style name="ActionBarTextSize" parent="@android:style/Widget.Holo.Light.ActionBar">
        <item name="android:textSize">14pt</item>
     </style>

Are you talking about creating a custom window title style? 您是在谈论创建自定义窗口标题样式吗? If so, check this out: http://www.londatiga.net/it/how-to-create-custom-window-title-in-android/ 如果是这样,请查看以下网址http : //www.londatiga.net/it/how-to-create-custom-window-title-in-android/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM