示例#1
0
        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;
            }
        }
示例#2
0
        public override CircularRecycler.ViewHolder OnCreateViewHolder()
        {
            View view = new View()
            {
                Size                   = new Size(360, 360),
                CornerRadius           = 180,
                ParentOrigin           = Tizen.NUI.ParentOrigin.Center,
                PivotPoint             = Tizen.NUI.PivotPoint.Center,
                PositionUsesPivotPoint = true,
            };

            NUIWHAdapter.ViewHolder viewHolder = new NUIWHAdapter.ViewHolder(view);
            return(viewHolder);
        }