> if AbsoluteLayout is not the recommended > way to place one view at an arbitrary location on top of another view, > I was just wondering what *is* the recommended way.
Custom layout or FrameLayout. > I was getting > confused because some places said FrameLayout and RelativeLayout were > the solution, but other places were very clear that they weren't the > best solution. FrameLayout is just fine, I don't understand why other developers claim it is not. You can specify the margins of the widgets, which is basically like giving them absolute coordinates. Note that I strongly advise against doing so. > I had also seen the suggestions of rolling a layout > manager on my own...I was just...a little unsteady about that. Don't be. It's easy and usually you can achieve much more control over your layout as well as much better performance. You can look at the source code of Home (in the SDK's samples) or Launcher (in the platform's source code) to see two examples of custom layouts. I myself write custom layouts in my apps because I can make them do exactly what I want. > I'll look into making my own layout manager. Please consider how > confusing this is for those of us not already in the know. For > example, I would assume this consists of writing my own layout class, > something akin to AbsoluteLayout or LinearLayout, etc. The funny > thing, which I find very confusing, is that none of those are actually > subclasses of Layout! Because there's no Layout class. Well, there is one but it belongs to the *text* package. Just ignore it. -- 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 -~----------~----~----~----~------~----~------~--~---

