public CompassRenderer(GlassMvxService service) : base(service) { try { _onChangedListener = new OnChangedListener(this); var inflater = LayoutInflater.From(service); _layout = (FrameLayout)inflater.Inflate(Resource.Layout.compass, null); _layout.SetWillNotDraw(false); _compassView = (CompassView)_layout.FindViewById(Resource.Id.compass); _tipsContainer = (RelativeLayout)_layout.FindViewById(Resource.Id.tips_container); _tipsView = (TextView) _layout.FindViewById(Resource.Id.tips_view); } catch (Exception e) { Log.Debug("Exception", e.Message); Log.Debug("Exception", e.InnerException.Message); } }
public override void attachedService(GlassMvxService service) { var s = service as CompassService; _compassView.OrientationManager = s.OrientationManager; }
public virtual void attachedService(GlassMvxService service) { }
public GlassDirectRenderingCallbackTarget(GlassMvxService service) { _renderingCallbackWrapper = new DirectRenderingCallbackWrapper(this); }