I'm a new Xamarin developer, using Visual Studio 2015, with the DesignCompat Library
I have a MainActivity that replaces fragments.
One of my fragments contains a list of buttons. These buttons need to load other fragments.
So I thought I would display the buttons, then handle the button's click event inside the MainActivity. That sounded right to be because the MainActivity could load the fragments and be the traffic cop.
I could not find a way to access the MainActivity from the Fragment, ir the Fragment's buttons from the MainActivity.
I could convert this all to separate activity's but I thought that was wrong.
But I can't seem to get a handle to the button object. It tells me object is null.
I've been googling this for 2 hours.
Any help would be great.