Skip to content

Instantly share code, notes, and snippets.

@magdamiu
Last active December 28, 2020 20:05
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 magdamiu/3daa5d8d8636923e0f3677b3d30ba824 to your computer and use it in GitHub Desktop.
Save magdamiu/3daa5d8d8636923e0f3677b3d30ba824 to your computer and use it in GitHub Desktop.
Define the datasource as a hardcoded list of emails
private void inbox() {
emails = new ArrayList<>();
Email email = null;
for (int i = 0; i < 25; i++) {
email = new Email(0, "Magda " + i, "Hello Android " + i, "This is an intro about Android");
emails.add(email);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment