What exactly is being passed into onMeasure()?

by ajb468 » Fri, 23 Apr 2010 00:21:52 GMT


Sponsored Links
 I don't understand the method onMeasure(int widthMeasureSpec, int
heightMeasureSpec). In the example I have seen, MeasureSpec.getMode()
is used, and passed in the widthMeasureSpec or heightMeasureSpec to
find the restrictions placed on the View's boundaries. The restictions
are either "EXACTLY," "AT_MOST," or "UNSPECIFIED." Well my questions
is, what determines these restictions? What calls and passes the
arguments of onMeasure that determine these restrictions? Is it the
parent View? Please help, im so confused.

--



Other Threads

1. how to transfer an action(ex:key press) from an Activity to other Activities

Thanks for your replies,

Actually, my application will run when incoming call is detected. Because i
do not know how to integrate my application into original dialer so i must
implement my application as a separate application. So when users press
Green Key, i want my application to exit and transfer this EVENT to original
dialer. Do you have any idea to solve my problem?

On Fri, Mar 13, 2009 at 2:12 AM, Streets Of Boston






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

2. how to transfer an action(ex:key press) from an Activity to other Activities

Hi all,
When my application is running, a button is pressed.After my
application processes this event, i want to continue to transfer this
event to other applications. Is it possible? If yes, how to do that?
I very appreciate your advices,
Thanks,
NPAK


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

3. Segmentation fault during building android on ppc

4. Uploading and downloadingdata to a directory on a server.

5. Attention moderators: Fwd: Increase Your App Downloads on Android Market

6. How to set the video display to the horizon or vertical of display panel in video playing

7. List of countries & carriers