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
Create a class variable and a Constructor for your adapter:
Context context; public NoteAdapter(Context context){ this.context = context; }
Then initialize the layoutinflater the following way:
LayoutInflater inflater = LayoutInflater.from(context);