Thanks Kostya it works great!!

On Dec 20, 11:44 am, Kostya Vasilyev <[email protected]> wrote:
> Petar,
>
> It's something like this:
>
> 1: Call "int getFirstVisiblePosition" and "int getLastVisiblePosition"
> on the list view object. That's your range of currently visible items.
>
> 2: Next, iterate over this range of positions.
>
> 3: For each one, use getItemAtPosition or getItemIdAtPosition or use the
> position as an index into your data structure to see if that particular
> list item is what you need to animate.
>
> 4: Once you've found the matching position, call listView.getChildAt, to
> get the root View for that list item's layout.
>
> 5: Call findViewById on the list item layout view from previous step
> (not the list view!) to get a reference to the particular view you're
> going to animate.
>
> 6: Call startAnimation on that view.
>
> Another way is to put a ViewFlipper into your list item layout and
> specify a transition animation.
>
> Then instead of steps 5 and 6, call findViewById to get a reference to
> the ViewFlipper for that paricular list item, and call showNext /
> showPrevious to perform animation.
>
> -- Kostya
>
> 20.12.2010 19:22, Petar K. О©╫О©╫О©╫О©╫О©╫:
>
>
>
> > Hello Kostya,
>
> > Thanks for the reply, I have been trying to do what you said but to no
> > luck. Is there any piece of code you can direct me to, to see how can
> > be done.
>
> > Thanks
>
> > On Dec 18, 6:26 pm, Kostya Vasilyev<[email protected]>  wrote:
> >> There is a way to interate currently visible items in a ListView. Do that,
> >> find the one whose data just changed, then get that item's layout, and 
> >> start
> >> your animation.
>
> >> Make sure to cancel any animation in getView of your adapter, in case an
> >> item's layout gets recycled before the animation is done playing.
>
> >> --
> >> Kostya Vasilyev --http://kmansoft.wordpress.com
> >> 19.12.2010 0:34 О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ "Petar 
> >> K."<[email protected]>  О©╫О©╫О©╫О©╫О©╫О©╫О©╫:
>
> >>> Hello,
> >>> I have created a listview where each row contains several textviews.
> >>> In my application some of these textviews can be updated based on what
> >>> I receive from my server. I want to know how I can set an animation to
> >>> a textview in a particular row. An example could be an application
> >>> where there is a list of live games and I want to update a particular
> >>> score with an animation.I have tried to put a textview.setAnimation in
> >>> my getView of my adapter however this makes an animation on every row
> >>> of my listview when I only want it at a particular row.
> >>> Any Help would be great.
> >>> Thanks,
> >>> --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "Android Developers" group.
> >>> To post to this group, send email to [email protected]
> >>> To unsubscribe from this group, send email to
> >>> [email protected]<android-developers%[email protected]>
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/android-developers?hl=en
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.com

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

Reply via email to