public void AddOverlay(View onView, ShowCaseConfig config) { _showCase = new ShowCase(); _showCase.SetTargetView(GetOrCreateRenderer(onView).NativeView); _showCase.InitConfig(config); _showCase.Show(); }
public void AddOverlay(Xamarin.Forms.View onView, ShowCaseConfig config) { if (_views.Count == 0) { _config = config; FrameLayout frame = new FrameLayout(MainApplication.ActivityContext); frame.AddView(Focus(onView)); var view = ((Activity)MainApplication.ActivityContext).LayoutInflater.Inflate(Resource.Layout.ShowcaseViewTitleLayout, frame); SetTextForView(view); _views.Add(view); _decoreView.AddView(view); } }
public void Show(View onView, ShowCaseConfig config) { OverlayService.AddOverlay(onView, config); }
public static void InitConfig(this ShowCase materialShowcase, ShowCaseConfig showCaseConfig) { materialShowcase.config = showCaseConfig; }