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. Picture supported in Android

Hi all,
    I'm doing an application of showing picture with ImageView.I want
to know how many kinds of picture are supported in Android, and what
are they.Could anyone give a list of these files?Thank you in advance!
--~--~---------~--~----~------------~-------~--~----~

2. Is there a way to drop a collection of apps into a folder on the homepage programmatically?

If I want to take 3 apps that I write and target them for a folder
called "my corporation" folder is there a way to do this
programmatically?  Will live folders help here in such a case?

Thanks
Satya

--~--~---------~--~----~------------~-------~--~----~

3. Encrypting application data file that is bundled with apk !

4. Building Secure Android Applications

5. Map view not displaying tiles in 1.5 but it's fine in 1.1

6. creating a dialog that slides in

7. Development versions of proprietary Google applications