示例#1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.InGame);
            // Create your application here

            m_Progress = FindViewById<HoloCircularProgressBar>(Resource.Id.holoCircularProgressBar1);
            m_Progress.CircleStrokeWidth = 20;
            m_Progress.Progress = 40;
            m_Progress.ProgressBackgroundColor = Android.Graphics.Color.Red;
            m_Progress.ProgressColor = Android.Graphics.Color.Transparent;
        }
        protected override void OnCreate(Bundle bundle)
        {
            if (Intent != null && Intent.Extras != null)
              {
            var theme = Intent.GetIntExtra("theme", 0);
            SetTheme(theme != 0 ? theme : Resource.Style.MyTheme);
              }
              else
              {
            SetTheme(Resource.Style.MyTheme);
              }

              base.OnCreate(bundle);
              SetContentView(Resource.Layout.circular_progress_bar);
              // Create your application here

              FindViewById<Button>(Resource.Id.switch_theme).Click += (sender, args) => SwitchTheme();

              m_Progress = FindViewById<HoloCircularProgressBar>(Resource.Id.holoCircularProgressBar1);
              m_Progress.Indeterminate = true;
        }