java.lang.reflect.InvocationTargetException in xamarin.android -
i exception when click button in fragment. below code fragment public override java.lang.object instantiateitem(viewgroup container, int position) { int pos = position + 1; if (pos == 1) { view view = layoutinflater.from (container.context).inflate (resource.layout.pager_item, container, false); container.addview (view); return view; } else if (pos == 2) { view view = layoutinflater.from (container.context).inflate (resource.layout.bookaservice, container, false); spinner spinner = view.findviewbyid<spinner> (resource.id.spinner); var adapter = arrayadapter.createfromresource ( container.context, resource.array.planets_array, android.resource.layout.simpledropdownitem1line); adapter.setdropdownviewresource (android.resource.layout.simpledropdownitem1line); spinner.a