Hot answers tagged

2

The variables wordCount and charCount are created and initialized only when the TextWatcher object is created and added as a listener. No new instance is created every time the text changes.


1

I have the same problem, and i realize that. When we create adapter and set it to listview, listview will point to object somewhere in memory which adapter hold, data in this object will show in listview. adapter = new CustomAdapter(data); listview.setadapter(adapter); if we create an object for adapter with another data again and ...



Only top voted, non community-wiki answers of a minimum length are eligible