简体   繁体   中英

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. How do I set style on that android:label. I would like to set textsize and 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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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