當前位置: 首頁>>代碼示例>>C#>>正文


C# Android.GetInt方法代碼示例

本文整理匯總了C#中Android.GetInt方法的典型用法代碼示例。如果您正苦於以下問題:C# Android.GetInt方法的具體用法?C# Android.GetInt怎麽用?C# Android.GetInt使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Android的用法示例。


在下文中一共展示了Android.GetInt方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: OnCreate

        public override void OnCreate (Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);
        
            if (savedInstanceState != null) {
                mRetryCounter = savedInstanceState.GetInt (KEY_RETRY_COUNTER);
                mRetryLoadFullWalletCount = savedInstanceState.GetInt (KEY_RETRY_FULL_WALLET_COUNTER);
                mHandleFullWalletWhenReady =
                    savedInstanceState.GetBoolean (KEY_HANDLE_FULL_WALLET_WHEN_READY);
            }
            mActivityLaunchIntent = Activity.Intent;
            mItemId = mActivityLaunchIntent.GetIntExtra (Constants.EXTRA_ITEM_ID, 0);
            mMaskedWallet = mActivityLaunchIntent.GetParcelableExtra (Constants.EXTRA_MASKED_WALLET).JavaCast<MaskedWallet> ();

            var accountName = ((BikestoreApplication) Activity.Application).AccountName;

            // Set up an API client;
            mGoogleApiClient = new GoogleApiClient.Builder (Activity)
                .AddConnectionCallbacks (this)
                .AddOnConnectionFailedListener (this)
                .SetAccountName (accountName)
                .AddApi (WalletClass.API, new WalletClass.WalletOptions.Builder ()
                    .SetEnvironment (Constants.WALLET_ENVIRONMENT)
                    .SetTheme (WalletConstants.ThemeLight)
                    .Build ())
                .Build ();

            mRetryHandler = new RetryHandler (this);
        }
開發者ID:apcurium,項目名稱:xamarin-bindings,代碼行數:29,代碼來源:FullWalletConfirmationButtonFragment.cs

示例2: MapScores

        private Score MapScores(Android.Database.ICursor cursor)
        {
            Score scr = new Score ();
            scr.ScoreID = cursor.GetInt (0);
            scr.ScoreDate = cursor.GetString (1);
            scr.PlayerName = cursor.GetString (2);
            scr.ScoreNumber = cursor.GetInt (3);

            return (scr);
        }
開發者ID:bny-mobile,項目名稱:QuizData,代碼行數:10,代碼來源:ScoreCommands.cs

示例3: MapScores

 private Score MapScores(Android.Database.ICursor cursor)
 {
     Score scr = new Score();
     scr.ScoreID = cursor.GetInt(0);
     scr.ScoreDate = cursor.GetString(1);
     scr.ScoreNumber = cursor.GetInt(2);
     scr.Rating = cursor.GetDouble(3);
     scr.Slope = cursor.GetInt(4);
     return (scr);
 }
開發者ID:evandrojr,項目名稱:Leitor,代碼行數:10,代碼來源:dbCommands.cs

示例4: OnActivityCreated

 public override void OnActivityCreated(Android.OS.Bundle savedInstanceState)
 {
     base.OnActivityCreated(savedInstanceState);
     if (savedInstanceState != null && savedInstanceState.GetInt(RUN_ID, -1) != -1) {
         CurrentRun = mRunManager.GetRun(savedInstanceState.GetInt(RUN_ID));
     }
     else if (Activity.Intent.GetIntExtra(RUN_ID, -1) != -1) {
         CurrentRun = mRunManager.GetRun(Activity.Intent.GetIntExtra(RUN_ID, -1));
     }
     else if (CurrentRun == null) {
         Run run = mRunManager.GetActiveRun();
         if (run != null) {
             CurrentRun = run;
         }
     }
 }
開發者ID:yingfangdu,項目名稱:BNR,代碼行數:16,代碼來源:RunFragment.cs

示例5: OnCreate

 public override void OnCreate(Android.OS.Bundle savedInstanceState)
 {
     if (savedInstanceState != null) {
         var savedAvatarIndex = savedInstanceState.GetInt (KeySelectedAvatarIndex);
         selectedAvatar = (Avatar)savedAvatarIndex;
     }
     base.OnCreate (savedInstanceState);
 }
開發者ID:CHANDAN145,項目名稱:monodroid-samples,代碼行數:8,代碼來源:SignInFragment.cs

示例6: NewQuestion

        private Question NewQuestion(Android.Database.ICursor cursor)
        {
            Question qst = new Question ();
            qst.ImageID = cursor.GetInt (1);
            qst.QuestionString = cursor.GetString (2);
            qst.CorrectAnswer = cursor.GetString (3);
            qst.WrongAnswer1 = cursor.GetString (4);
            qst.WrongAnswer2 = cursor.GetString (5);
            qst.WrongAnswer3 = cursor.GetString (6);

            return (qst);
        }
開發者ID:bny-mobile,項目名稱:QuizData,代碼行數:12,代碼來源:QuestionCommands.cs

示例7: OnCreate

		public override void OnCreate(Android.OS.Bundle savedInstanceState)
		{
			base.OnCreate(savedInstanceState);
			Android.Util.Log.Info("SuperAwesomeCardFragment", string.Format("OnCreate called"));
			if (savedInstanceState != null)
			{
				_position = savedInstanceState.GetInt("position", 0);
				_enableProgressButton = savedInstanceState.GetBoolean("enableProgressButton", false);
			}
			if (this.View != null)
			{
				Android.Util.Log.Info("SuperAwesomeCardFragment", string.Format(string.Format("View already present for position {0}", _position)));
			}
		}
開發者ID:hugoterelle,項目名稱:PagerSlidingTabStrip.Net,代碼行數:14,代碼來源:SuperAwesomeCardFragment.cs

示例8: OnGetDefaultValue

 protected override Java.Lang.Object OnGetDefaultValue(Android.Content.Res.TypedArray ta, int index)
 {
     var defaultValue = ta.GetInt (index, DEFAULT_VALUE);
     return defaultValue;
 }
開發者ID:JeffreyLau,項目名稱:FiredTVLauncher,代碼行數:5,代碼來源:SeekBarPreference.cs


注:本文中的Android.GetInt方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。