public Preview(TrophyCameraActivity context) : base(context.ApplicationContext) { _Context = context; mSurfaceView = new SurfaceView(context); AddView(mSurfaceView); SetBackgroundColor(Color.Red); // Install a SurfaceHolder.Callback so we get notified when the // underlying surface is created and destroyed. mHolder = mSurfaceView.Holder; mHolder.AddCallback(this); if (Build.VERSION.SdkInt < BuildVersionCodes.Honeycomb) { mHolder.SetType(SurfaceType.PushBuffers); } }
public static TrophyFragment newInstance(string trophyName, TrophyCameraActivity context) { TrophyFragment frag = new TrophyFragment(trophyName, context); return(frag); }
public TrophyFragment(string trophyName, TrophyCameraActivity context) { this.context = context; this.TrophyName = trophyName; }