Наследование: Android.Views.ViewGroup
Пример #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);
            bgWorker = app.ServiceLocator.Get<IBackgroundWorker>();
            logger = SmeedeeApp.Instance.ServiceLocator.Get<ILog>();

            flipper = FindViewById<RealViewSwitcher>(Resource.Id.WidgetContainerFlipper);
            flipper.ScreenChanged += HandleScreenChanged;

            _bottomRefreshButton = FindViewById<Button>(Resource.Id.WidgetContainerBtnBottomRefresh);
            _bottomRefreshButton.Click += delegate { RefreshCurrentWidget(); };

            AddWidgetsToFlipper();

            foreach (var widget in _widgets)
            {
                widget.DescriptionChanged += WidgetDescriptionChanged;
            }
        }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);
            bgWorker = app.ServiceLocator.Get <IBackgroundWorker>();
            logger   = SmeedeeApp.Instance.ServiceLocator.Get <ILog>();

            flipper = FindViewById <RealViewSwitcher>(Resource.Id.WidgetContainerFlipper);
            flipper.ScreenChanged += HandleScreenChanged;

            _bottomRefreshButton        = FindViewById <Button>(Resource.Id.WidgetContainerBtnBottomRefresh);
            _bottomRefreshButton.Click += delegate { RefreshCurrentWidget(); };

            AddWidgetsToFlipper();

            foreach (var widget in _widgets)
            {
                widget.DescriptionChanged += WidgetDescriptionChanged;
            }
        }