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

[Android] Toolbar icons color and BarTextColor

$
0
0

Hello,

I'm facing an issue with the BarTextColor. I'm trying to change the Navigation bar design as follow :
Icons as Green color and Title as Black.

I did the trick easily in IOS with a custom renderer, but I do not find a way to do it in Android.

The implementation of my custom renderer :

private Support.Toolbar toolbar;

        public override void OnViewAdded(Android.Views.View child)
        {
            base.OnViewAdded(child);

            if (child.GetType() == typeof(Support.Toolbar))
            {
                toolbar = (Support.Toolbar)child;
                toolbar.SetTitleTextColor(Color.Black.ToAndroid());
            }
        }

I set BarTextColor = Color.Green; to my NavigationPage

Here the result in my emulator:

Any idea ?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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