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. DatePicker and calender in android ?

1. First of all i want to know that there is any control(View) in android
for DatePicker just like traditional Calender look, remember i m not
discussing android built in DatePicker control.

2. i used DialogDatePicker its working best, but when i use builtIn android
DatePicker Control (view) without dialog in my activity,
so i can't found setOnDateChangedListener listener in DatePicker. can any
body tell me how i handle the date change event without using DatePicker not
DialogDatePicker.

thanks

-- 
-----------------------------
Mohsin Yaseen
Android Developer, EASIP IMSciences
Consultant Software, Qurtuba Education System
http://www.linkedin.com/in/rmyasin
http://groups.yahoo.com/group/bPakistani/
+923349069919
+923129069919
rmya...@yahoo.com
myas...@gmail.com

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

2. Returning a value from TabActivity.

Hello,

How can I return a value from TabActivity? It seems that the return
value from tab pages vanishes and the caller always receives
RESULT_CANCELED instead of RESULT_OK.

Here is a simple but complete example.
http://www.futuredesktop.org/tmp/TabTest.zip
Please take some time to study and test it.
-----------------------
The main activity is Test.java. It starts the TabPage activity with

The TabPage activity has 2 tab pages with TabContent1 and TabContent2
activities. The main Test.java [by function  onActivityResult(...) ]
should receive individual return values from these tab pages, but this
fails. Why? The return values is always RESULT_CANCELED.

TIA,
  Osmo (Moma) Antero from Norway/Grnland,
  http://www.futuredesktop.org/developing_android_apps_on_ubuntu.html

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

3. time of outgoing SMS

4. Icon and text on button

5. Question about drawing caches in the new SDK

6. Get the phone credentials to use Google Calendar API

7. Can't create a MapView Object -> VerifyError