Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to Increment the cursor values?
- class NoteHolder {
- private Button b1 = null;
- private Button b2 = null;
- private Button b3 = null;
- NoteHolder(View row) {
- b1 = (Button) row.findViewById(R.id.one);
- b2 = (Button) row.findViewById(R.id.two);
- b3 = (Button) row.findViewById(R.id.three);
- }
- void populateFrom(Cursor c, NoteHelper helper) {
- b1.setText(helper.getNote(c));
- c.moveToNext();
- b2.setText(helper.getNote(c));
- c.moveToNext();
- b3.setText(helper.getNote(c));
- }
- }
Add Comment
Please, Sign In to add comment