Wednesday, December 1, 2010

[android-developers] Re: onItemClick(AdapterView parent, View view,

Its probably a bad idea to play with any View managed by the Adapter
other than the one that is passed to onItemClick() or to getView().
So the idea that you find view + 1 is not going to work. There is
lots of tricky View pool activity behind the scenes so you can't make
any assumptions about what view is at any other location. If might
seem to work part of the time but you can't depend on it.

On Dec 1, 6:14 pm, kiros88 <ghui...@gmail.com> wrote:
> Okay i dont want to get to many ppl confused so im going to try to ask
> this very simply. When android goes to this function when a user
> clicks on a item on your listview. basically u get a parent who im
> assuming is the array of textview that was set up during the
> setAdapter phase and view which the the corresponding View to which
> the user touched.   My main and only questions is i know i can adjust
> the view of View by saying stuff like
>
> (TextView)view = setText("hello")
>
> during the same time i want to beable to change another TextView in
> the AdapterView like the View after the "View view" so i guess view
> +1   i want to also be able to change that view into another word.
>
> Please dont ask me y im doing this just that im doing it for a reason
> I just really need help and i hope this explains that During the
> onItemClick listener function basically I want to adjust 2 different
> Views in the arrays of Views but i have no idea how to access the any
> other view then the given "View view" thats the argument they give you

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment