Thanks for replying again. * * * you can override its height in the getview() and set it at 1 dp high (tip: don't set the row view to View.GONE). At the end of the animations you will just be fiddling around with row heights and view contents so you shouldn't need the notifyDatasetChanged().* * * I could not get you by setting it at 1 dp high.And what i need to do after animation ends?Please explain little more.
On Tuesday, 15 January 2013 19:01:13 UTC+5:30, Spiral123 wrote: > > > in that case I'd think about insert a new row into the list when the > listview is first displayed. from the example its always going to be at > position(0) in the list so you can override its height in the getview() and > set it at 1 dp high (tip: don't set the row view to View.GONE). At the end > of the animations you will just be fiddling around with row heights and > view contents so you shouldn't need the notifyDatasetChanged(). > > > On Tuesday, January 15, 2013 4:14:52 AM UTC-5, Ansh wrote: >> >> Hi Nick , >> >> Thanks a lot for your reply. I did the same you suggested but it had >> revealed few issues: >> >> after implementing all three steps and when i did below step also >> >> *- After the animations have finished insert a new Row into the List at >> the insertion point, change the child view height back to a single row >> height and destroy the dummy row view.* >> * >> * >> *-*when i inserted Row into the insertion point and called >> notifyDatasetChanged for the list to update the row it showed some jerk >> because list's getview method called and repopulate the list again and i >> needed not to change the child view height back as getView changed its >> height back to original.Animation was not that smooth as its in the >> youtube video. >> >> If i misunderstood your stpes ,and if possible ,could u please create a >> demo project and send it to me to yourans...@gmail.com.I ll be grateful to >> you. >> On Monday, 14 January 2013 18:55:46 UTC+5:30, Spiral123 wrote: >>> >>> I think this is not very different to a question we had a couple of >>> weeks ago. >>> >>> This is what I would do: >>> >>> - I would not use 2 ListViews. I would leave the original ListView >>> underneath and dynamically create a new View that was a single RowView and >>> put that on top and slide it around. >>> >>> - I would not insert an extra row into the original ListView. Instead >>> find the child view at the top of the list and double the height of it. >>> Make sure the gravity of the content is such that is sticks to the bottom >>> of the view. >>> >>> - Slide the dummy row view up until it lies directly over the top >>> (blank) part of the child view. >>> >>> - After the animations have finished insert a new Row into the List at >>> the insertion point, change the child view height back to a single row >>> height and destroy the dummy row view. >>> >>> >>> I think that should give you the appearance you want. Judging from the >>> neutral background and lack of row dividers I'm guessing whoever wrote the >>> sample behind your youtube example did something similar. >>> >>> Best, >>> >>> Nick >>> >>> >>> >>> On Monday, January 14, 2013 3:16:59 AM UTC-5, Ansh wrote: >>>> >>>> I have tried one way of doing this kind of animation.I have taken 2 >>>> listviews and made first list view's visibility gone.Then i have taken one >>>> separate layout( the same custom layout i am using for the listview )and >>>> trying to translate that layout from middle to top and once it reaches to >>>> top and making it's visibility to gone.and the same time when the view is >>>> translating, i am sliding down the list also and once the view's animation >>>> ends i am setting list animation to fillAfter = true and fillEnabled=true >>>> and list1.setVisibility = gone and list2.setVisibility = visible sothat >>>> list2 should be visible but what happening is list1 is not getting gone it >>>> still be there because of the bug when we use fillAfter = true and >>>> fillEnabled=true.How can i make my list1 visibility to gone ? >>>> >>>> On Sunday, 13 January 2013 00:10:47 UTC+5:30, 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