private void Initialize()
        {
            var size = (int)CalculateScreenDimension((float)DefaultSize);

            _northArrow = new NorthArrowShape(Context)
            {
                Size = size
            };
            AddView(_northArrow);
            UpdateCompassRotation(false);
            _northArrow.Click += (s, e) => ResetRotation();
        }
Ejemplo n.º 2
0
        private void Initialize()
        {
            var size = (int)CalculateScreenDimension((float)DefaultSize);

            _northArrow = new NorthArrowShape(Context)
            {
                Size = size
            };
            _northArrow.LayoutParameters = new Android.Widget.FrameLayout.LayoutParams(Android.Widget.FrameLayout.LayoutParams.MatchParent, Android.Widget.FrameLayout.LayoutParams.MatchParent);
            AddView(_northArrow);
            UpdateCompassRotation(false);
            _northArrow.Click += (s, e) => ResetRotation();
        }