Re: [android-developers] Layout problems: AbsoluteLayout deprecated, how to do it now?
Martin wrote:
> For my game "Leonard Frog - Beta" in the market, I use an
> AbsoluteLayout to place all the buttons in the correct position like
> in the following image:
> http://digle.de/friends/LeonardFrogBig.jpg
>
> Now the AbsoluteLayout is deprecated. How can I place these buttons
> now in the right position like in the image without using the
> AbsoluteLayout? (I don't want to cover the frog and other things of my
> background image).
>
> The other problem with my AbsoluteLayout was that my main page of the
> game looks like this on smaller devices:
> http://digle.de/friends/LeonardFrogSmall.jpg
The official answer has been "write your own layout class that
incorporates your own rules". The idea is that layout classes isolate
pixel-level positioning from the rest of the UI.
And if anyone knows of a good tutorial or two on creating your own
layout classes, I'd love to see 'em.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android App Developer Books: http://commonsware.com/books
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home