android - what is the value of Arg1 and Arg2 on onItemClick? -
android - what is the value of Arg1 and Arg2 on onItemClick? -
i'm trying alter 1 textview in view in listview,
and got 1 adapter set can't utilize adapters this.
i tried in "for" statement, using
mlistview.getchildat(i)
but didn't worked.
when tried within onitemclick method, using arg1
instead of
mlistview.getchildat(i)
, worked item clicked.
but need happen without clicking on item,
so question is: value of arg1
, arg2
?
i know represent, want know value when click on item.
thanks.
from android documentation :
public abstract void onitemclick (adapterview<?> parent, view view, int position, long id)
callback method invoked when item in adapterview has been clicked.
implementers can phone call getitematposition(position) if need access info associated selected item.
parameters :
parent adapterview click happened.
view view within adapterview clicked (this view provided adapter)
position position of view in adapter.
id row id of item clicked.
android mobile
Comments
Post a Comment