OnCreateViewHolder(ViewGroup parent, int viewType) { View itemView = LayoutInflater.From(parent.Context). Inflate(Resource.Layout.device_wifi_view, parent, false); WifiSelectionDeviceHolder vh = new WifiSelectionDeviceHolder(itemView); return(vh); }
OnBindViewHolder(RecyclerView.ViewHolder holder, int position) { WifiSelectionDeviceHolder vh = holder as WifiSelectionDeviceHolder; var device = _devices[position]; vh.Caption.Text = device.SSID; vh.ItemView.Click += (sender, e) => { _action(device.SSID); }; }