Skip to content

Instantly share code, notes, and snippets.

@jezinka
Last active August 11, 2018 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/27640fff4186b040ad1ebd22f8fcbafe to your computer and use it in GitHub Desktop.
Save jezinka/27640fff4186b040ad1ebd22f8fcbafe to your computer and use it in GitHub Desktop.
@Override
public void onBindViewHolder(ViewHolder holder, int position) {
final Sensor sensor = mSensor[position];
TextView label = holder.label;
label.setText(sensor.label);
TextView temperature = holder.temperature;
temperature.setText(TextUtils.concat("Temp. ", String.valueOf(sensor.temperature), "\u00B0C"));
(...)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment