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. How to realize TextView control has wordwrap functionallity.

Hi,
 I am a beginner of Android, I have a question need to resovlve.
String s = "aaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbb";

TextView textView = new TextView(this);
 textView.setText(s);

The above code only show part of  s on the screen in a line.
I wish the textview control can automatically wrap it in multiline.
how can I do it? thanks.

Bo

-- 

2. android.text.format.Time.parse3339

the following code:

        Time t = new Time("GMT");
        t.parse3339("2010-06-25T11:30:00-07:00");

produces the following error:

        android.util.TimeFormatException: Unexpected 0 at position 19.
Expected + or -

my understanding is that the format of the timestamp meets the
requirements:

        "2010-06-25T11:30:00-07:00"

any thoughts?  here are the results of some more investigation:

        Time t = new Time("GMT");
        t.parse3339("2010-06-25T11:30:00.000Z");                // works
        t.parse3339("2010-06-25T11:30:00.000-08:00");   // works
        t.parse3339("2010-06-25T11:30:00Z");                    // works
        t.parse3339("2010-06-25T11:30:00-08:00");               // BROKEN

it appears that the fractional sections are required when a timezone
offset is present.

i'm using android 2.1 (API 7).

-- 

3. How would I include non-class files in my apk?

4. How would I include non-class files in my apk?

5. Custom ListView complex item does not appear correctly

6. How would I include non-class files in my apk?

7. Ers(hare): touchwiz launcher galaxy s