Android Question [Resolved] B4X Pages - Action Bar - Replace 3 (three) Dot icon

Jmu5667

Well-Known Member
Licensed User
Longtime User
Hello

I am trying to replace the 3 dot icon using the following in my manifest:
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="31"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)

'End of default text.
' // https://www.b4x.com/android/forum/threads/theme-colors.87716/#content FF2E8B57 FF7CFC00
SetApplicationAttribute(android:theme, "@style/LightTheme")

CreateResource(values, colors.xml,
<resources>
   <color name="actionbar">#FF000000</color>
   <color name="statusbar">#FF000000</color> 
   <color name="navigationBar">#FF000000</color>
   <color name="white">#FFFFFFFF</color>
</resources>
)


' // https://www.b4x.com/android/forum/threads/dot-menu-color.86637/#post-548847
CreateResource(values, theme.xml,
<resources>
      <style name="ToolbarOverflowTheme" 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/ic_more_vert_white_24dp</item>
    </style>

</resources>
)

CreateResource(values-v14, theme.xml,
<resources>
     
    <style name="LightTheme" parent="@android:style/Theme.Holo.Light">
           <item name="android:actionBarStyle">@style/CustomActionBarStyle</item>
       </style>
     
    <style name="CustomActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
       <item name="android:background">@color/actionbar</item>
       </style> 
 
</resources>
)


CreateResource(values-v20, theme.xml,
<resources>
    <style name="LightTheme" parent="@android:style/Theme.Material.Light">
        <item name="android:colorPrimary">@color/actionbar</item>
        <item name="android:colorPrimaryDark">@color/statusbar</item>
        <item name="android:navigationBarColor">@color/navigationBar</item>
    </style>
  
</resources>
)

I have appCompat lib 4.02 included in the project. It is a B4XPages project.

I looked at https://www.b4x.com/android/forum/threads/dot-menu-color.86637/#post-548847 to see how it is done.

Does not seem to work. Any suggestions

Regards

John.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…