Strike through TextView item in ListView by checking database status
问题 I am a beginner in Android, I have a ListView which loads data from SQLite database with this code on onCreate : Cursor cursor = dbAdapter.getAllTasks(); String[] fromFields = new String[] {dbAdapter.dbHelper.KEY_TASK}; int[] toView = new int[] {R.id.task}; SimpleCursorAdapter myCursorAdapter; myCursorAdapter = new SimpleCursorAdapter(getBaseContext(), R.layout.task_items, cursor, fromFields, toView, 0); ListView myList = (ListView) findViewById(R.id.taskList); myList.setAdapter