Esempio n. 1
0
 public void addNoteToList(Note note, int position) {
   notes.add(position, note);
   notesAdapter.notifyItemInserted(position);
 }
Esempio n. 2
0
 public void addNoteToList(Note note) {
   emptyView.setVisibility(View.GONE);
   notes.add(0, note);
   notesAdapter.notifyItemInserted(0);
 }