Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

NavigationPage.BarTextColor should also change color of back arrow (on Android)

$
0
0

Summary

NavigationPage.BarTextColor should also change color of back arrow. On iOS this is already the behavior however not on Android.

API Changes

No API changes.

Add following code change to Xamarin.Forms.Platform.Android.AppCompat.NavigationPageRenderer (around line 823):

      if (!textColor.IsDefault) {
        bar.SetTitleTextColor(textColor.ToAndroid().ToArgb());
        var icon = bar.NavigationIcon as DrawerArrowDrawable;
        if (icon != null) {
          icon.Color = textColor.ToAndroid();
        }
      }

Note: I did also post this as bug at bugzilla, but I got a reply to make a post at this forum.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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