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