public static SampleSlide NewInstance(int layoutResId) { SampleSlide sampleSlide = new SampleSlide(); Bundle args = new Bundle(); args.PutInt(ARG_LAYOUT_RES_ID, layoutResId); sampleSlide.Arguments = args; return(sampleSlide); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); AddSlide(SampleSlide.NewInstance(Resource.Layout.intro)); AddSlide(SampleSlide.NewInstance(Resource.Layout.intro2)); AddSlide(SampleSlide.NewInstance(Resource.Layout.intro3)); AddSlide(SampleSlide.NewInstance(Resource.Layout.intro4)); }