java - What resource is the id parameter in ArrayAdapter constructor? -


i trying figure out resource id in arrayadapter constructor. have other questions, too:

  • what used for?
  • why should point text?
  • isn't purpose of arrayadapter push kind of items it?
  • why textview?
  • can't use arrayadapter<view> view can view?

what used for

if supplied, points id of textview inside of row layout. if not supplied, , using default getview() implementation of arrayadapter, row layout must be textview.

and why should point text

because built-in implementation of getview() on arrayadapter wants take tostring() of model object , put text textview.

why textview?

because built-in implementation of getview() on arrayadapter expects.

can't used arrayadapter view can view ?

yes, can. however, if not have textview in row, cannot use built-in implementation of getview() , must comoletely override it.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -