예제 #1
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int i)
        {
            ReceiverScanHolder vh = holder as ReceiverScanHolder;
            var item = liMain[i];

            vh.tvTitle.Text         = item.title;
            vh.ivChecked.Visibility = item.isChecked ? ViewStates.Visible : ViewStates.Gone;
            vh.vItem.Tag            = i;
        }
예제 #2
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int i)
        {
            ReceiverScanHolder vh = holder as ReceiverScanHolder;

            //vh.vItem.Click += VItem_Click;
            //vh.ibOption.Click += OnItemOptionClick;

            var PairedDevice = liMain[i];

            if (PairedDevice.status == Constants.DEVICE_STAT_CONNECTING || PairedDevice.status == DEVICE_STAT_CONNECTED)
            {
                vh.vItem.Visibility = ViewStates.Gone;
            }
            vh.tvTitle1.Text = PairedDevice.title1;
            vh.vItem.Tag     = i;
        }
        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int i)
        {
            ReceiverScanHolder vh = holder as ReceiverScanHolder;
            var scanDevice        = liMain[i];

            vh.tvTitle1.Text = scanDevice.title1;
            if (string.IsNullOrEmpty(scanDevice.title2))
            {
                vh.tvTitle2.Visibility = ViewStates.Gone;
            }
            else
            {
                vh.tvTitle2.Text = scanDevice.title2;
            }
            vh.vItem.Tag = i;
        }