예제 #1
0
            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);
            }
예제 #2
0
 protected virtual void Configure(SuperAwesomeCardFragment frag, int position)
 {
     frag.Configure(position, false);
 }
예제 #3
0
 protected override void Configure(SuperAwesomeCardFragment frag, int position)
 {
     frag.Configure(position, true);
 }