[Android UI] ActionBar Custom Properties

Source: Internet
Author: User

Actionbar is placed on top by default, if added in application or activity

Android:uioptions= "Splitactionbarwhennarrow"

Then, the Actionbar will be displayed at the bottom.

Custom attributes, including the background color of the custom Actionbar

 <!--The theme applied to the application or activity -    <stylename= "Customactivitytheme"Parent= "@style/theme.base.appcompat">        <Itemname= "Android:actionbarstyle">@style/myactionbar</Item>
<!--custom Actionbar background Color-- <Itemname= "Android:actionoverflowbuttonstyle">@style/myactionbuttonoverflow</Item>
<!--custom Actionbar overflow Pictures-- <Itemname= "Android:actionbardivider">@color/black</Item>
<!--the split line between the item of the custom Actionbar-- <Itemname= "Android:popupmenustyle">@style/mypopupmenu</Item>
<!--custom Popupwindow background Color-- <!--Other activity and action Bar styles here - </style> <!--style for the action bar backgrounds - <stylename= "Myactionbar"Parent= "@android: Style/widget.holo.actionbar"> <Itemname= "Android:background">@color/black</Item> <Itemname= "android:backgroundstacked">@color/black</Item> <Itemname= "Android:backgroundsplit">@color/black</Item> </style>

Picture of the Custom Actionbar overflow

 <stylename= "Myactionbuttonoverflow"Parent= "Android:style/widget.holo.light.actionbutton.overflow">       <Itemname= "Android:src">@drawable/ic_dxhome_airplane_on</Item>       <Itemname= "Android:background">? android:attr/actionbaritembackground</Item>       <Itemname= "Android:contentdescription">"Lala"</Item>   </style>

Custom Click Overflow pop-up popupwindow background color

 <  style  = "Mypopupmenu"   Parent   Span style= "Color:rgb (0, 0, 255); >>  <  item  Span style= "Color:rgb (255, 0, 0); >name   </ Span style= "Color:rgb (128, 0, 0); >item  >  </ Span style= "Color:rgb (128, 0, 0); >style  

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.