Android Modify activity heading style ActionBar

Source: Internet
Author: User

Modify the activity's heading style and Actionbar code as follows

    <!--application theme. -    <stylename= "Apptheme"Parent= "Appbasetheme">        <!--All customizations, that is, specific to a particular api-level can go. -        <!--<item name= "Android:windowbackground" > @color/darkblue</item> -        <!--<item name= "Android:colorbackground" > @color/darkblue</item> -        <Itemname= "Android:actionbarstyle">@style/myactionbarstyle</Item>     </style>    <stylename= "Myactionbarstyle"Parent= "Android:Widget.ActionBar">        <Itemname= "Android:background">@color/darkblue</Item>        <Itemname= "Android:titletextstyle">@style/acbar_titlestyle</Item>    </style>    <stylename= "Acbar_titlestyle">        <Itemname= "Android:textsize">18sp</Item>        <Itemname= "Android:textcolor">#FFFFFF</Item>    </style>

Modify the project Values/styles.xml add the style you want to redefine in <style name= "Apptheme" parent= "Appbasetheme" >.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.