daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. remindersCursorAdapter = new SimpleCursorAdapter(this,
  2.                          R.xml.view_reminders_item_layout,
  3.                          remindersCursor, new String [] { RemindersDAO.NAME },
  4.                          new int[] { R.id.view_reminders_item_text } );
  5.  
  6. viewRemindersListView.setAdapter(remindersCursorAdapter);
  7.    
  8. @Override
  9.   public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {
  10.  
  11.        // now get the checkbox view. Then set the checked status.
  12.         CheckBox checkbox = (CheckBox) view.findViewById(R.id.check_box);
  13.         checkBox.setChecked(!checkbox.isChecked());
  14.   }
  15.    
  16. <Checkbox>
  17.           android:focusable="true"
  18.       </Checkbox>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top