c# - Xamarin Activity OnCreate ActionBar is null -


I just upgraded to an Axmarin in my next "stable" version I think problems with my class are happening The activity that handles the activity is unbearable for some reason when it was not before. I am quite worried about why this is happening.

  Public class navigation drawer activity: activity {// ... Uncover protected override (bundled saved instenstate) {base.OnCreate (SavedInstanceState); // ... // NullPointerException, this.ActionBar is zero This.ActionBar.SetDisplayHomeAsUpEnabled (true); This.ActionBar.SetHomeButtonEnabled (true); // ...} // ...}  

This code is based on:

Do anyone have any ideas, because of this Could?

No problem, I understand it. Apparently I should be an heir of actionbrake instead of activity. I had to add component Android support library v7 AppCompat and support using Android. V7.App; .


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -