public NUIWHAdapter(WidgetViewManager manager) { _viewManager = manager; dataList = new List <FaceData>(); dataList.Add(new FaceData(FaceData.FaceType.WATCH, "")); sampleCreator = new SampleCreator(); int count = sampleCreator.GetDictCount(); for (int i = 0; i < count; i++) { dataList.Add(new FaceData(FaceData.FaceType.SAMPLE, sampleCreator.GetDictString(i))); } widgetList = WidgetApplicationInfo.LoadAllParameters(); }
public void SetSampleView(SampleCreator sampleCreator, string title) { ResetWidgetContainer(); sampleTitle.Show(); textView.Hide(); mainView.BackgroundColor = Color.Black; sampleTitle.Text = title; View view = sampleCreator.CallCreatorFunction(title); view.Position = new Position(0, 30); widgetContainerView.Add(view); mainView.Add(widgetContainerView); }