Ejemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            handler = new Handler();
            client  = new GoogleApiClientBuilder(this, this, this)
                      .AddApi(WearableClass.Api)
                      .Build();

            SetContentView(Resource.Layout.Main);
            pager         = FindViewById <GridViewPager> (Resource.Id.pager);
            loading       = FindViewById <ProgressBar> (Resource.Id.loading);
            countSwitch   = FindViewById <Switch> (Resource.Id.metricSwitch);
            dotsIndicator = FindViewById <DotsPageIndicator> (Resource.Id.dotsIndicator);

            countSwitch.Checked         = ActionStatus == BikeActionStatus.Stop;
            countSwitch.CheckedChange  += HandleCheckedChange;
            dotsIndicator.PageScrolled += HandlePageScrolled;
            dotsIndicator.SetPager(pager);
        }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate (savedInstanceState);
            handler = new Handler ();
            client = new GoogleApiClientBuilder (this, this, this)
                .AddApi (WearableClass.Api)
                .Build ();

            SetContentView (Resource.Layout.Main);
            pager = FindViewById<GridViewPager> (Resource.Id.pager);
            loading = FindViewById<ProgressBar> (Resource.Id.loading);
            countSwitch = FindViewById<Switch> (Resource.Id.metricSwitch);
            dotsIndicator = FindViewById<DotsPageIndicator> (Resource.Id.dotsIndicator);

            countSwitch.Checked = ActionStatus == BikeActionStatus.Stop;
            countSwitch.CheckedChange += HandleCheckedChange;
            dotsIndicator.PageScrolled += HandlePageScrolled;
            dotsIndicator.SetPager (pager);
        }