Layout problems: AbsoluteLayout deprecated, how to do it now?

by Arron » Sat, 30 Jan 2010 18:10:19 GMT


Sponsored Links
 Well that's exactly the reason why absoluteLayout was deprecated.  It
works for only one screen size.

I will say use various layouts with sp margins to space out the
buttons correctly.




--



Layout problems: AbsoluteLayout deprecated, how to do it now?

by theSmith » Sun, 31 Jan 2010 03:28:44 GMT


 


You should be able to use a relativelayout or a linearlayout and just
add padding in dip (density independent pixels) to the sides of the
buttons.  For small screen devices you probably want to create a new
layout with smaller buttons so it displays properly.

-theSmith



--


Sponsored Links


Layout problems: AbsoluteLayout deprecated, how to do it now?

by kaasinees » Tue, 02 Feb 2010 02:07:56 GMT


 try making a new view that is centered in the layout than use the
margin attributes like mentioned before to position the buttons inside
that  view.

this way it could work on all screen sizes.




--



Layout problems: AbsoluteLayout deprecated, how to do it now?

by James Wang » Sat, 27 Feb 2010 12:30:43 GMT


 I think you can do anything with Framelayout like absolutelayout.

--



Other Threads

1. Sound output

Hi,

I'm wondering if there is a way of choosing your sound/audio output
source for a audio file or the text to speech function to ear speaker
instead of the louder back speaker?
Been looking around for it but can't find an answer for it.

Andr

-- 

2. Is it possible to install certificate (a .pkx file) to android phone

Hi,

Can you please tell me if it is possible to install certificate to
android phone so that
I can go to a https site in android browser?

Thank you.

-- 

3. Adding image into imageadapter at runtime

4. Configuring a DNS server IP address on android while using 3G

5. Regarding web radio channel playing

6. play audio from a stream in android...

7. CacheManager.getCacheFileBaseDir() always returns null