I have similar functionality. I create a ViewGroup, large enough to hold the outgoing View below the incoming View.
I replace the outgoing View with the ViewGroup in the tree, animate a translation, then replace the ViewGroup with the incoming View. It works well for me. Admittedly, I slide the whole screen, so I don't have visibility issues. But you should be able to restrict the sliding section using onLayout, I guess. On Sunday, January 20, 2013 12:33:46 PM UTC+10, dashman wrote: > > i've got a nested layout that takes up the middle of a screen. > > on user input i'd like to slide a new layout over it - just the > portion of the screen that the original layout spans. > > and then later slide it back up - and make it disappear. > > i was thinking about using relativelayout - initially making > the sliding layout invsibile. > > but haven't figured out how to make it slide down. > > any pointer appreciated - i can look up the details. > > > > -- 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