private void CreateAndAddWalletFragment() {
var walletFragmentStyle = new WalletFragmentStyle()
.SetMaskedWalletDetailsTextAppearance (
Resource.Style.BikestoreWalletFragmentDetailsTextAppearance)
.SetMaskedWalletDetailsHeaderTextAppearance (
Resource.Style.BikestoreWalletFragmentDetailsHeaderTextAppearance)
.SetMaskedWalletDetailsBackgroundColor(
Resources.GetColor (Resource.Color.bikestore_white))
.SetMaskedWalletDetailsButtonBackgroundResource(
Resource.Drawable.bikestore_btn_default_holo_light);
var walletFragmentOptions = WalletFragmentOptions.NewBuilder ()
.SetEnvironment (Constants.WALLET_ENVIRONMENT)
.SetFragmentStyle (walletFragmentStyle)
.SetTheme (WalletConstants.ThemeLight)
.SetMode (WalletFragmentMode.SelectionDetails)
.Build ();
mWalletFragment = SupportWalletFragment.NewInstance (walletFragmentOptions);
// Now initialize the Wallet Fragment
var accountName = ((BikestoreApplication) Application).AccountName;
var startParamsBuilder = WalletFragmentInitParams.NewBuilder ()
.SetMaskedWallet (mMaskedWallet)
.SetMaskedWalletRequestCode (REQUEST_CODE_CHANGE_MASKED_WALLET)
.SetAccountName (accountName);
mWalletFragment.Initialize (startParamsBuilder.Build ());
// add Wallet fragment to the UI
SupportFragmentManager.BeginTransaction ()
.Replace (Resource.Id.dynamic_wallet_masked_wallet_fragment, mWalletFragment)
.Commit ();
}