In my application, I have ListView which is set by my CustomAdapter (i.e. ArrayAdapter). CustomAdapter has ViewHolder implemented in it which has references to all the views in my CustomList.
Now my question is how can I access the views in my CustomList (like EditText in below code) as the class hierarchy is like
public class BaseActivityClass{
...
class CustomAdapter{
...
public class ViewHolder{
EditText et;
...
}
}
}
from my activity BaseActivityClass?
You can give your
Viewa unique id (View.setId()) or tag (View.setTag()) in yourgetView()method and then usefindViewById()orfindViewByTag()to use them