Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created December 5, 2017 20:01
Show Gist options
  • Save rdelrosario/83e92ba68816a1b5ea0402dc8da1ff9c to your computer and use it in GitHub Desktop.
Save rdelrosario/83e92ba68816a1b5ea0402dc8da1ff9c to your computer and use it in GitHub Desktop.
Andriod Tool child view added
void OnToolbarChildViewAdded(object sender, ChildViewAddedEventArgs e)
{
var view = e.Child.GetType();
if (e.Child.GetType() == typeof(Android.Widget.TextView))
{
var textView = (Android.Widget.TextView)e.Child;
textView.Visibility = ViewStates.Gone;
_originalDrawable = textView.Background;
_originalFont = textView.Typeface;
_originalColorStateList = textView.TextColors;
var lastPage = Element?.Navigation?.NavigationStack?.Last();
SetupToolbarCustomization(lastPage);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment