Created
December 5, 2017 20:01
-
-
Save rdelrosario/83e92ba68816a1b5ea0402dc8da1ff9c to your computer and use it in GitHub Desktop.
Andriod Tool child view added
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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