예제 #1
0
        OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            View itemView = LayoutInflater.From(parent.Context).
                            Inflate(Resource.Layout.recycler_view_item
                                    , parent, false);
            TrackingNumberViewHolder vh = new TrackingNumberViewHolder(itemView);

            return(vh);
        }
예제 #2
0
        OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
        {
            TrackingNumberViewHolder vh = holder as TrackingNumberViewHolder;

            try
            {
                vh.Caption.Text = mBarcodeScannerList[position].GetBarcodeText;
            }
            catch { vh.Caption.Text = "Missing Tracking Number"; }
        }