public static Android.Support.V4.App.Fragment newInstance(MainActivity context, int pos, float scale,bool IsBlured) { Bundle b = new Bundle(); b.PutInt("pos", pos); b.PutFloat("scale", scale); b.PutBoolean("IsBlured", IsBlured); MyFragment myf = new MyFragment (); return Android.Support.V4.App.Fragment.Instantiate (context,myf.Class.Name, b); }
public MyPagerAdapter(MainActivity context, Android.Support.V4.App.FragmentManager fm) :base (fm) { this.fm = fm; this.context = context; }