Wednesday, October 28, 2009

[android-developers] Re: update a ListView with getView

ok fixed that, I used this:

mAvailableOptionsListView.getChildAt(correctPosition).setAnimation
(shake)

my next problem is that when I set this animation the view does not
seem to set the animation immediately...why is that? Do I have to
invalidate anything or manually refresh the display somehow?

On Oct 28, 10:54 pm, jax <jackma...@gmail.com> wrote:
> Hi
>
> I am trying to update a ListView with the following:
>
> TextView listItem= (TextView)mAvailableOptionsListView.getAdapter
> ().getView(1, null, null);
>
> listItem.setText("test");
>
> The problem is that it does not update in the
> mAvailableOptionsListView ListView.  Why is that?
--~--~---------~--~----~------------~-------~--~----~
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