protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.determinate_circular_sample_activity); mPrimaryProgressBars = this.BindViews <ProgressBar>(Resource.Id.normal_progress, Resource.Id.tinted_normal_progress, Resource.Id.dynamic_progress, Resource.Id.tinted_dynamic_progress); mPrimaryAndSecondaryProgressBars = this.BindViews <ProgressBar>(Resource.Id.normal_secondary_progress, Resource.Id.normal_background_progress, Resource.Id.tinted_normal_secondary_progress, Resource.Id.tinted_normal_background_progress, Resource.Id.dynamic_secondary_progress, Resource.Id.dynamic_background_progress, Resource.Id.tinted_dynamic_secondary_progress, Resource.Id.tinted_dynamic_background_progress); SupportActionBar.SetDisplayHomeAsUpEnabled(true); mPrimaryProgressAnimator = Animators.MakeDeterminateCircularPrimaryProgressAnimator(mPrimaryProgressBars); mPrimaryAndSecondaryProgressAnimator = Animators.MakeDeterminateCircularPrimaryAndSecondaryProgressAnimator(mPrimaryAndSecondaryProgressBars); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.main_activity); mDeterminateCircularProgressBars = this.BindViews <ProgressBar>(Resource.Id.determinate_circular_large_progress, Resource.Id.determinate_circular_progress, Resource.Id.determinate_circular_small_progress); mDeterminateCircularProgressAnimator = Animators.MakeDeterminateCircularPrimaryProgressAnimator(mDeterminateCircularProgressBars); }