Guest User

Untitled

a guest
Aug 22nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. How to Increment the cursor values?
  2. class NoteHolder {
  3. private Button b1 = null;
  4. private Button b2 = null;
  5. private Button b3 = null;
  6.  
  7.  
  8. NoteHolder(View row) {
  9. b1 = (Button) row.findViewById(R.id.one);
  10. b2 = (Button) row.findViewById(R.id.two);
  11. b3 = (Button) row.findViewById(R.id.three);
  12.  
  13. }
  14.  
  15. void populateFrom(Cursor c, NoteHelper helper) {
  16. b1.setText(helper.getNote(c));
  17. c.moveToNext();
  18. b2.setText(helper.getNote(c));
  19. c.moveToNext();
  20. b3.setText(helper.getNote(c));
  21.  
  22. }
  23.  
  24. }
Add Comment
Please, Sign In to add comment