public override void OnBindViewHolder(CircularRecycler.ViewHolder holder, int position) { NUIWHAdapter.ViewHolder vHolder = holder as NUIWHAdapter.ViewHolder; vHolder.notifyView.Unparent(); Tizen.Log.Error("MYLOG", "OnBinde position : " + position); vHolder.textView.Text = "" + position; FaceData faceDate = dataList[position]; switch (faceDate.type) { case FaceData.FaceType.WATCH: vHolder.SetWatchFace(); Tizen.Log.Error("MYLOG", "Draw Watch Face"); break; case FaceData.FaceType.WIDGET: //TEMPORARY CODE -->Unblocking touch NUIWidget vHolder.SetWidgetView(widgetViewList[faceDate.res]); Tizen.Log.Error("MYLOG", "Draw Widget : " + faceDate.res); break; case FaceData.FaceType.NOTIFY: vHolder.SetNotifyView(faceDate.res); Tizen.Log.Error("MYLOG", "Draw Notify"); break; case FaceData.FaceType.SAMPLE: vHolder.SetSampleView(sampleViewList, faceDate.res); Tizen.Log.Error("MYLOG", "Draw Sample"); break; } }
public void AddWidget(FaceData faceData) { if (!widgetViewList.ContainsKey(faceData.res)) { widgetViewList.Add(faceData.res, CreateWidget(faceData.res)); } dataList.Add(faceData); }
public void AddNotify(FaceData faceData) { dataList.Insert(0, faceData); }