当前位置: 首页>>代码示例>>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;未经允许,请勿转载。