示例#1
0
        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);
            }
        }
示例#2
0
        public static TrophyFragment newInstance(string trophyName, TrophyCameraActivity context)
        {
            TrophyFragment frag = new TrophyFragment(trophyName, context);

            return(frag);
        }
示例#3
0
 public TrophyFragment(string trophyName, TrophyCameraActivity context)
 {
     this.context    = context;
     this.TrophyName = trophyName;
 }