public override Java.Lang.Object InstantiateItem(ViewGroup container, int position) { Android.Util.Log.Info("MyPagerAdapter", string.Format("InstantiateItem being called for position {0}", position)); var result = base.InstantiateItem(container, position); SuperAwesomeCardFragment frag = result as SuperAwesomeCardFragment; if (frag != null) { Configure(frag, position); frag.ChangeTitleRequested += toReturn_ChangeTitleRequested; } return(result); }
protected virtual void Configure(SuperAwesomeCardFragment frag, int position) { frag.Configure(position, false); }
protected override void Configure(SuperAwesomeCardFragment frag, int position) { frag.Configure(position, true); }