Toolbar not showing...

Stesvis 1,041 Reputation points
2021-01-07T19:14:15.85+00:00

What could cause my toolbar items to not show at all?
This code has no effects now:

   <ContentPage.ToolbarItems>  
           <ToolbarItem Order="Primary" Text="Edit" />  
       </ContentPage.ToolbarItems>  

The page just has the navigation bar displaying correctly, but the toolbar items don't. There should be an Edit button in this navigation bar. I tried on other pages and I have the same issue (i am on XF 5.0):
54475-screenshot-1610046735.png

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,362 questions
{count} votes

Accepted answer
  1. Stesvis 1,041 Reputation points
    2021-01-07T20:05:19.937+00:00

    Found the answer finally.
    In Android you have to add this line to your styles.xml:

    <item name="android:actionMenuTextColor">@color/primaryDark</item>
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.