示例#1
0
 protected override void InitializeViews()
 {
     startIcon         = FindViewById <View>(Resource.Id.StartIcon);
     startLabel        = FindViewById <TextView>(Resource.Id.StartLabel);
     startTimeText     = FindViewById <TextView>(Resource.Id.StartTimeText);
     startDotSeparator = FindViewById <View>(Resource.Id.StartDotSeparator);
     startDateText     = FindViewById <TextView>(Resource.Id.StartDateText);
     stopIcon          = FindViewById <View>(Resource.Id.StopIcon);
     stopLabel         = FindViewById <View>(Resource.Id.StopLabel);
     stopTimeText      = FindViewById <TextView>(Resource.Id.StopTimeText);
     stopTimerLabel    = FindViewById <TextView>(Resource.Id.StopTimerLabel);
     stopDotSeparator  = FindViewById <View>(Resource.Id.StopDotSeparator);
     stopDateText      = FindViewById <TextView>(Resource.Id.StopDateText);
     wheel             = FindViewById <View>(Resource.Id.Wheel);
     wheelBackground   = FindViewById <WheelBackgroundView>(Resource.Id.WheelBackground);
     wheelForeground   = FindViewById <WheelForegroundView>(Resource.Id.WheelForeground);
     wheelNumericInput = FindViewById <WheelDurationInput>(Resource.Id.WheelDurationInput);
     toolbar           = FindViewById <Toolbar>(Resource.Id.Toolbar);
 }
示例#2
0
        protected override void InitializeViews()
        {
            startLabel        = FindViewById <TextView>(Resource.Id.StartLabel);
            startTimeText     = FindViewById <TextView>(Resource.Id.StartTimeText);
            startDateText     = FindViewById <TextView>(Resource.Id.StartDateText);
            stopLabel         = FindViewById <TextView>(Resource.Id.StopLabel);
            stopTimeText      = FindViewById <TextView>(Resource.Id.StopTimeText);
            stopTimerLabel    = FindViewById <TextView>(Resource.Id.StopTimerLabel);
            stopDotSeparator  = FindViewById <View>(Resource.Id.StopDotSeparator);
            stopDateText      = FindViewById <TextView>(Resource.Id.StopDateText);
            wheelForeground   = FindViewById <WheelForegroundView>(Resource.Id.WheelForeground);
            wheelNumericInput = FindViewById <WheelDurationInput>(Resource.Id.WheelDurationInput);
            durationLabel     = FindViewById <TextView>(Resource.Id.DurationLabel);

            startLabel.Text     = Shared.Resources.Start;
            stopLabel.Text      = Shared.Resources.Stop;
            stopTimerLabel.Text = Shared.Resources.StopTimer;
            durationLabel.Text  = Shared.Resources.Duration;

            SetupToolbar(title: Shared.Resources.StartAndStopTime);
        }