There are two inflexibilities with the SlidingDrawer which is why I'm not keen on using it, cool as it is. The first is the inability to have more than one drawer. (ok, I could have one on the bottom and one on the left, but it's not what I'm looking for) I have found a place in my UI where multiple drawers would have been great. I won't go into details, it's an application specific thing) The effect I was hoping for was that of having two or three handlers at the top, like tabs, which could be pulled down to reveal further information. And that brings me to the second point. 2) Sliding drawers can only be placed at the bottom or the right hand side. Unfortunately, I'm looking for a vertical drawer coming down from the top. (at the bottom I've got a row of buttons and I don't want the user to fear pressing the wrong thing)
But, SlidingDrawer aside, the best effect I could have for the app I'm creating is the Launcher with the neat drag multiple 'desktops' into view from the left or right. I guess I could copy the code, both of the Launcher and SlidingDrawer, and modify, but I'd much rather use the existing API if I could. Any ideas at all? On May 27, 12:21 am, Romain Guy <[email protected]> wrote: > SlidingDrawer is part of the framework in Android 1.5. Why do you need > several drawers? > > > > On Tue, May 26, 2009 at 3:47 PM, Dianne Hackborn <[email protected]> wrote: > > Copy the SlidingDrawer code into your app and modify it to work how you > > want. Just be sure to put them in your own package so they don't conflict > > with the platform. > > > On Tue, May 26, 2009 at 3:27 PM, Parakoos <[email protected]> wrote: > > >> Hello, > > >> Is there an easy way to imitate the Launcher look and feel? I mean > >> having three full screen views which can be switched between by > >> sliding/dragging right or left. > > >> I had a look at the source code to see how it was done and found that > >> the magic is done in the "com.android.launcher" package. I take it > >> that it is inadvisable to use the same classes as those in that > >> package due to them not being part of the official SDK and therefore > >> up for change at any point? > > >> If so, is there a good way to get a similar effect from the official > >> SDK? The SlidingDrawer would have given me what I needed if it was > >> possible to have more than one defined, but that seems to not be > >> supported. (the handles stack on top of each other) > > >> So you know what problem I'm trying to solve, here is some background: > >> I've got the an application which shows a photo. I want to maximize > >> the viewing area of the photo so it takes up most of the screen. At > >> the same time I'd like the user to easily be able to bring into view > >> the metadata of the photo. That is where I wanted the 'slide android > >> view into view' functionality similar to that found in the Launcher > >> and/or the SlidingDrawer. > > >> Thanks for any help. > > >> Gustav > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see and > > answer them. > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

