Hi Nobu,

Thanks for your reply.But Can you please elaborate on the solutions you 
have suggested.I have tried lot to achieve the task.Is this task possible 
to achieve?

On Sunday, 13 January 2013 00:57:55 UTC+5:30, Nobu Games wrote:
>
> The quick and incorrect approach would be starting these growing 
> animations from your ListAdapter's getView method. Right before you return 
> the convertView you'd start the animation object on that view.
>
> However, there is a problem with that animation approach because ListViews 
> lays out its child views (items) and determines their positions. So using 
> an Animation object for transforming the height of an item (grow animation) 
> would not affect the other list items. They would statically remain in 
> their locations and your new item that slides in will just grow into a gap 
> that is exactly that item's full size.
>
> Following solution ideas:
>
> - You override ListView and add some layout animation behavior that does 
> what you need
>
> - Animate the height of your added item using a Timer object. Trigger 
> re-layouts of the ListView in order to align the other child views 
> accordingly.
> (However, I don't know whether you'll need to constantly invalidate your 
> listadapter in order to make that work. This might turn out to be a pretty 
> wasteful approach!)
>
>
> On Saturday, January 12, 2013 12:40:47 PM UTC-6, Ansh wrote:
>>
>> Hi guys
>>
>> I am new to animation in android.I am trying to translate  childitem/ of 
>> a listview.First child view should translate from middle to top of the list 
>> and the list should also slide down during the translate animation and make 
>> the space of the view being translated.Please help me guys as it has eaten 
>> up my mind for  past 3days.
>>
>> i am trying to achieve exactly the same in this video.
>> http://youtu.be/xPLhfEJuz4k
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to