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
canview
?
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
Post a Comment