Common Header With Click Events Of Header From All Activities In Xamarin Android
If you want an app with Toolbar and Bottom Bar in your app, there is a good tutorial here: http://mateoj.com/2015/06/21/adding-toolbar-and-navigation-drawer-all-activities-android/
You should also take a look on Android Fragments.
Solution 2:
@kumar Sudheer, I don't know the xamarin development, but I can understand what you want to do by looking at the code and exception you get.
Just pass the View
object as parameter in the SettingClick
method of your header activity
publicvoidSettingsClick(View v){
}
In android when you define the click handler in layout file then the signature of that method would be public void <clickHandler>(View v) {}
.
You've not passed the View
parameter in the method that's why system is unable to find your method in Activity and that's why you are getting the java.lang.IllegaliStateException
Post a Comment for "Common Header With Click Events Of Header From All Activities In Xamarin Android"