当前位置: 首页>>代码示例>>C#>>正文


C# Android.GetBoolean方法代码示例

本文整理汇总了C#中Android.GetBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# Android.GetBoolean方法的具体用法?C# Android.GetBoolean怎么用?C# Android.GetBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Android的用法示例。


在下文中一共展示了Android.GetBoolean方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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

示例3: OnCreate

 public override void OnCreate (Android.OS.Bundle savedInstanceState)
 {
     base.OnCreate (savedInstanceState);
     if (savedInstanceState != null)
         mPromoWasSelected = savedInstanceState.GetBoolean (KEY_PROMO_CLICKED);
     
     var accountName = ((BikestoreApplication) Activity.Application).AccountName;
     var options = new Android.Gms.Identity.Intents.Address.AddressOptions (WalletConstants.ThemeLight);
     mGoogleApiClient = new GoogleApiClient.Builder (Activity)
         .AddApi (Android.Gms.Identity.Intents.Address.Api, options)
         .SetAccountName (accountName)
         .AddConnectionCallbacks (this)
         .AddOnConnectionFailedListener (this)
         .Build();
 }
开发者ID:apcurium,项目名称:xamarin-bindings,代码行数:15,代码来源:PromoAddressLookupFragment.cs

示例4: OnCreate

        public override void OnCreate (Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);

            if (savedInstanceState != null)
                mSignInButtonClicked = savedInstanceState.GetBoolean (KEY_SIGNIN_BUTTON_CLICKED);
            
            var args = Arguments;
            if (args != null)
                mLoginAction = args.GetInt (LoginActivity.EXTRA_ACTION);
            
            var options = new PlusClass.PlusOptions.Builder ().Build ();
            mGoogleApiClient = new GoogleApiClient.Builder (Activity)
                .AddApi (PlusClass.API, options)
                .AddConnectionCallbacks (this)
                .AddOnConnectionFailedListener(this)
                .AddScope (PlusClass.ScopePlusProfile)
                .AddScope (new Scope (WALLET_SCOPE))
                .Build ();
        }
开发者ID:apcurium,项目名称:xamarin-bindings,代码行数:20,代码来源:LoginFragment.cs


注:本文中的Android.GetBoolean方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。