How to get the childs right and left position from RelativeLayout.onLayout() ralted to the parentLayout width

by GPU » Fri, 30 Oct 2009 20:50:17 GMT


Sponsored Links
 How to get the childs right and left position from
RelativeLayout.onLayout() ralted to the parentLayout width

If i call the child.getLeft or child.getRIght its giving 0 in onLayout
();
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. avoiding Activity stack overflow...

I have the following situation.  I have a task with the following
activity stack --
A - B - C

I have a menu item that allows me to start activity D; so my activity
stack looks like this --
A - B - C - D

Then I could select a menu item that allows me to start an activity C,
which would cause my activity stack to look like this:
A - B - C - D - C

Then I could go back (via the menu item) to activity D, making my
activity stack look like this:
A - B - C - D - C - D

Doing this a few more times, it would wind up looking like this --
A - B - C - D - C - D - C - D - C - D - C - D - C - D - C - D - C - D
- C - D - C - D

This seems kinda stupid to me.  I'd like it to simply re-use an
activity, or pop the activity below to be on top (which goes against
the nature of a "stack").

So, what I mean is if I had this activity stack:
A - B - C - D

And I started activity C (from the menu), I would get:
A - B - D - C

And if I then started activity D (from the menu), I would get:
A - B - C - D

Is there a way to do this without keeping some global list of
activities and doing gross things to them to reorder them?

tia.
--~--~---------~--~----~------------~-------~--~----~

2. Starting an Activity (with the dialog theme) from the onCreate() of another Activity results in a black screen.

I've had this problem in a few different apps now and I can't seem to
find a solution.

If, in the onCreate() of an Activity, I start a new activity that uses
the dialog theme (via android:theme="@android:style/Theme.Dialog" in
the manifest) it doesn't draw anything to screen... the whole screen
stays black. All the views are there (e.g., I can tap where an
EditText should be and it'll give me the keyboard), they're just not
visible.

Anyone have any ideas?
--~--~---------~--~----~------------~-------~--~----~

3. Displaying a panoramic image

4. wifi and browse

5. Unable to write text file to sdcard on physical G1 device

6. Why does media scanner not list the audio file suffixed with ".aac".

7. HTTP Connections?