@Override
    public void onBindViewHolder(ViewHolder viewHolder, final int position) {
    """
	Replace the contents of a view (invoked by the layout manager)
    """
        final DeviceGuiElement device = ServicesGuiList.get().getServices().get(position);

        if (device.getName() == null || device.getName().equals("")) {
            viewHolder.nameTextView.setText("Name not found, please wait...");
        } else {
            viewHolder.nameTextView.setText(device.getName());
        }

        viewHolder.addressTextView.setText(device.getAddress());
        viewHolder.identifierTextView.setText(device.getIdentifier());
        viewHolder.logo.setImageDrawable(new IconicsDrawable(context)
                .icon(FontAwesome.Icon.faw_android)
                .color(context.getResources().getColor(R.color.red))
                .sizeDp(30));

        viewHolder.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                itemClickListener.serviceItemClicked(device);
            }
        });
    }
@Override
    public void onBindViewHolder(ViewHolder viewHolder, final int position) {
        final DeviceGuiElement device = ServicesGuiList.get().getServices().get(position);

        if (device.getName() == null || device.getName().equals("")) {
            viewHolder.nameTextView.setText("Name not found, please wait...");
        } else {
            viewHolder.nameTextView.setText(device.getName());
        }

        viewHolder.addressTextView.setText(device.getAddress());
        viewHolder.identifierTextView.setText(device.getIdentifier());
        viewHolder.logo.setImageDrawable(new IconicsDrawable(context)
                .icon(FontAwesome.Icon.faw_android)
                .color(context.getResources().getColor(R.color.red))
                .sizeDp(30));

        viewHolder.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                itemClickListener.serviceItemClicked(device);
            }
        });
    }
@ Override public void onBindViewHolder ( ViewHolder viewHolder , final int position ) { final DeviceGuiElement device = ServicesGuiList . get ( ) . getServices ( ) . get ( position ) ; if ( device . getName ( ) == null || device . getName ( ) . equals ( "" ) ) { viewHolder . nameTextView . setText ( "Name not found, please wait..." ) ; } else { viewHolder . nameTextView . setText ( device . getName ( ) ) ; } viewHolder . addressTextView . setText ( device . getAddress ( ) ) ; viewHolder . identifierTextView . setText ( device . getIdentifier ( ) ) ; viewHolder . logo . setImageDrawable ( new IconicsDrawable ( context ) . icon ( FontAwesome . Icon . faw_android ) . color ( context . getResources ( ) . getColor ( R . color . red ) ) . sizeDp ( 30 ) ) ; viewHolder . setOnClickListener ( new OnClickListener ( ) { @ Override public void onClick ( View v ) { itemClickListener . serviceItemClicked ( device ) ; } } ) ; }
Replace the contents of a view (invoked by the layout manager)
Replace the contents of a view ( invoked by the layout manager )