public override View OnCreateView (LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState)
		{
			// Inflate the layout for this fragment
			View v = inflater.Inflate(Resource.Layout.main_fragment, container, false);
			if (v != null) {
				mAccountField = (TextView) v.FindViewById(Resource.Id.card_account_field);
				mAccountField.Text = "Waiting...";

				mLoyaltyCardReader = new LoyaltyCardReader (new WeakReference<LoyaltyCardReader.AccountCallback>(this));

				// Disable Android Beam and register our card reader callback
				EnableReaderMode ();
			}
			return v;
		}
Exemple #2
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container,
                                          Bundle savedInstanceState)
        {
            // Inflate the layout for this fragment
            View v = inflater.Inflate(Resource.Layout.main_fragment, container, false);

            if (v != null)
            {
                mAccountField      = (TextView)v.FindViewById(Resource.Id.card_account_field);
                mAccountField.Text = "Waiting...";

                mLoyaltyCardReader = new LoyaltyCardReader(new WeakReference <LoyaltyCardReader.AccountCallback>(this));

                // Disable Android Beam and register our card reader callback
                EnableReaderMode();
            }
            return(v);
        }