Skip to content

Instantly share code, notes, and snippets.

@jezinka
Last active Aug 11, 2018
Embed
What would you like to do?
@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