nativescript-angular: ActionBar ActionItems : Popup menu icon & color is not setting
Hi, I am trying to set action-items with popup menu (Like Menu list in Android). Snapshots are as follows :
Image 1
Image 2
Problem :
I want to set custom icons/drawables to action-item’s popup menu, but it’s not setting any icons and default color is black (see three dots in image 1 @ top right corner), i am not able to change color of popup menu’s icon.
I tried foll. code -
<ActionBar title="Compare">
<ActionItem text="Export to PDF" icon="res://menu_white" ios.position="popup" android.position="popup"> </ActionItem>
<ActionItem text="Settings" icon="res://menu_white" ios.position="popup" android.position="popup"> </ActionItem>
</ActionBar>
Is there any way to set custom icon for popup menus? or to set color for popup menu? The default color is black,but as i am having dark gray action bar, i want to set white color for popup menu (three dots). Please help me!
I want to achieve something like this -

About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 4
- Comments: 24 (4 by maintainers)
Hi, I found a way to modify only the color of the icon (three dots). After a lot of research, I found that this “popup” icon is called Overflow Button. Then the solution appeared in stackoverflow. https://stackoverflow.com/questions/35932669/how-do-i-change-the-action-bar-overflow-button-color
first you have to define the color (or you can use one of those that are already defined)
app\App_Resources\Android\src\main\res\values-v21\colors.xml
Now you have to create a style that uses that color and then in the main theme of the app you have to apply that new style to the actionOverflowButtonStyle
app\App_Resources\Android\src\main\res\values-v21\styles.xml
this works perfect for me, I hope it helps.
You cannot style the action popup action items and the overflow button with CSS currently. What you can do is to modify the actual android styles used in your app. The way to do that is to copy the
valuesandvalues-v21folders from your platforms folder (usually under<project>/platforms/android/src/main/res/toApp_Resources/androidand modify the as you like. The modified styles will be used when you rebuild the app (justlivesyncwill not be enough).For example you can change the color of the overflow button by adding the folloing item in you AppTheme(styles.xml):
To change color of ActionBar overflow button color, add the following in styles.xml:-
<item name="colorControlNormal">#fff</item>OR<item name="android:textColorSecondary">@color/ns_white</item>When you apply any of the above, it also changes the color of the bottom border of TextField, seemingly making it look borderless on a white background.
My environment is:
Is it not possible to only set a color for the overflow button from ActionBar without affecting anything else?
To change the color of overflow button programmatically:
Hey, how can I set only overflow button color because now in my case all list view scroll bars and textfield inputs are white too?!