I am working through John Horton\'s Android Programming for Beginners, and am currently attempting to create a note-taking app. Horton has just introduced ListVie
ListVie
First make the constructor of Adapter: like follow :
Context context; public NoteAdapter(Context context) { this.context = context }
Now use this context:
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);