protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_polling); mCompositeSubscription = new CompositeDisposable(); mCardInputWidget = FindViewById <CardInputWidget>(Resource.Id.card_widget_three_d); mErrorDialogHandler = new ErrorDialogHandler(SupportFragmentManager); mProgressDialogController = new ProgressDialogController(SupportFragmentManager); mPollingDialogController = new PollingDialogController(this); mStripe = new Stripe(this); Button threeDSecureButton = FindViewById <Button>(Resource.Id.btn_three_d_secure); threeDSecureButton.Click += (s, e) => { BeginSequence(false); }; Button threeDSyncButton = FindViewById <Button>(Resource.Id.btn_three_d_secure_sync); threeDSyncButton.Click += (s, e) => { BeginSequence(true); }; RecyclerView recyclerView = FindViewById <RecyclerView>(Resource.Id.recycler_view); RecyclerView.LayoutManager linearLayoutManager = new LinearLayoutManager(this); recyclerView.HasFixedSize = true; recyclerView.SetLayoutManager(linearLayoutManager); mPollingAdapter = new PollingAdapter(); recyclerView.SetAdapter(mPollingAdapter); }
public DependencyHandler( AppCompatActivity activity, CardInputWidget cardInputWidget, ListView outputListView) { mCardInputWidget = cardInputWidget; mContext = activity.BaseContext; mProgresDialogController = new ProgressDialogController(activity.SupportFragmentManager); mListViewController = new ListViewController(outputListView); mErrorDialogHandler = new ErrorDialogHandler(activity.SupportFragmentManager); }
public void InitializeErrorDialogHandler (ErrorDialogHandler handler) { error_dialog_handler = handler; }
public void InitializeErrorDialogHandler(ErrorDialogHandler handler) { error_dialog_handler = handler; }