Android Question Dot menu color

Ramon Bustamante

Member
Licensed User

Attachments

  • Borrame.png
    Borrame.png
    83.6 KB · Views: 342
Last edited:

Peter Simpson

Expert
Licensed User
Longtime User
I thought that the 3 dits were an image. If I'm correct then you will either have to color theme from light to dark, or place an image in the drawable folder and set @drawable in the theme.xml file. Set the image for the three dots there, are called action overflow icon (I think).
 
Upvote 0

Ramon Bustamante

Member
Licensed User
I thought that the 3 dits were an image. If I'm correct then you will either have to color theme from light to dark, or place an image in the drawable folder and set @drawable in the theme.xml file. Set the image for the three dots there, are called action overflow icon (I think).
Thanks Peter. I don't know where is the image. If I go to the designer and set Theme = Light, then the dots are black, so I have change the color.
Do you know what is the property to set in code?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I don't think that you can change the icon color. It is changed based on the theme.

You can however replace it with your own icon. For example:
B4X:
CreateResource(values, theme.xml,
<resources>
  <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
     <item name="actionOverflowButtonStyle">@style/OverFlow</item>
  </style>
   <style name="OverFlow" parent="Widget.AppCompat.ActionButton.Overflow">
  <item name="android:src">@drawable/icon</item>
   </style>
   
</resources>
)

Replace /icon with your own icon file (it should go to res\drawable and be readonly).
 
Upvote 0
Top