Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Change ToolbarItem.Name color in Android?

$
0
0

After adding the simplest of toolbars to a NavigationPage, is there a way to style it in Android?

ToolbarItems.Add(new ToolbarItem
{
       Name = "Done",
       Command = new Command(() => Navigation.PopModalAsync()),
});

A couple of observations (correct me if I am wrong):
* ToolbarItem does not have any color/font properties.
* ToolbarItem does not use its parent's BarTextColor as a rendering hint.
* ToolbarItem does not derive from cell/view/button.
* Spelunking in reflection didn't give me any hints to what this BindableObject eventually might be rendered as
* Couldn't find any custom renders to inherit from (please correct me if I am wrong).

In short, in XF I'm kind of left scratching my head on how to make this happen in Android. My expectation is that is works the same as in iOS, which is to use the BarTextColor property (tested and works as such in 1.2.3); however, I am willing to work around it if I can find a solution.

Thanks in advance everyone!
-Max


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>