Created
September 17, 2016 22:35
-
-
Save mplacona/1768f98b0f901804625e038e0e81b6e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final String ICON_URL = "https://unsplash.it/50/50?random"; | |
... | |
@Override | |
public void onBindRealmViewHolder(ViewHolder viewHolder, int position) { | |
final Note note = realmResults.get(position); | |
viewHolder.mText.setText(note.getText()); | |
viewHolder.mDate.setText(note.getDate().toString()); | |
Picasso.with(getApplicationContext()) | |
.load(ICON_URL) | |
.placeholder(R.mipmap.ic_launcher) | |
.error(R.mipmap.error) | |
.into(viewHolder.mIcon); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment