public static MirrorFragment NewInstance()
        {
            MirrorFragment fragment = new MirrorFragment();

            fragment.RetainInstance = true;
            return(fragment);
        }
Beispiel #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            ActionBar.Hide();
            SetContentView(Resource.Layout.activity_camera);

            if (bundle == null)
            {
                FragmentManager.BeginTransaction().Replace(Resource.Id.container, MirrorFragment.NewInstance()).Commit();
            }
        }
 public MirrorSurfaceTextureListener(MirrorFragment fragment)
 {
     Fragment = fragment;
 }