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. Porting android on a AT91SAM9G20 with 64MByte of RAM and 8MByte dataflash memory

Hi SebFox,

Looking at the spec of your board it should be just about ok.  I have a
similar spec board but in my case i am using a OMAP 2430 processor. I have
got the android kernel working on my device.

Regards,

Sunny




> 

2. Getting hold of a resource using generated string

Try Resources#getIdentifier().



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html

3. How to handle Async service + screen orientation change

4. Finding if softkeyboard is visible in landscape mode

5. Nexus custom rom modaco

6. how can i make any service running when the phone is switched on just after the booting.

7. libstagefright on Android 2.0 source tree