Yep.  If none of the layout managers does what you want, the current
recommended approach is to write your own (via subclassing ViewGroup) and
consider at that point how you want your layout to deal with different
screen sizes.

On Thu, Dec 10, 2009 at 2:03 PM, String <[email protected]>wrote:

> I believe the reason is that absolute layouts don't scale well to
> different screen sizes and densities. That's going to be true
> regardless of whether you do layout in XML or Java.
>
> String
>
> On Dec 10, 9:28 pm, ben <[email protected]> wrote:
> > I'm not sure I understand the reason for that though. If you chose not
> > to use xml layouts to set up your view, it's incredibly difficult to
> > use a layout in code to draw your view. The only other option is to
> > override onDraw in which case aren't you hand drawing everything in
> > absolute coordinates?
> >
> > On Dec 10, 12:55 pm, Dianne Hackborn <[email protected]> wrote:
> >
> >
> >
> > > The point of deprecating AbsoluteLayout is that you shouldn't be doing
> > > layout in absolute coordinates. ;)
> >
> > > On Wed, Dec 9, 2009 at 10:28 PM, sheng wang <[email protected]>
> wrote:
> > > > Hi,
> >
> > > > Since the absolutelayout is deprecated, how to put a widget (suck as
> a
> > > > button)  on arbitary  (X,Y)
> >
> > > > thx
> >
> > > > --
> > > > 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]<android-developers%[email protected]><android-developers%2Bunsubs
> [email protected]>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
> >
> > > --
> > > 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.
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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.

-- 
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

Reply via email to