RE : When is onMeasure called?

by Alexandre Ligier » Sat, 17 Jul 2010 02:27:08 GMT


Sponsored Links
 Hi,

If I remember well, you can get the "final" measure of a view in the onDraw
method.

Le 16 juil. 2010 14:32, "Klaus Kartou" <kar...@gmail.com> a crit :

Ok makes sense. However I need a little help.
I need to call a method on the view that should be called when the
correct size of the view is known. If I understand correctly onMeasure
might be called multiple times when the layouting process runs through
the view hierarchy?
How do I know when the view has been completely layouted and measured?

Best,
Klaus






onMeasure
than
a
either
-------------------------------------------------------------------------------------------------
>>



Other Threads

1. Android can't play a YouTube video I uploaded

Hi, not sure if this is the right forum to ask, but several days ago I
posted a demo of our app on youtube and discovered that users can't
view it from their phone. The YouTube app shows this error message:
"Sorry, at this time the video you requested is not available in a
format that will display on your phone."
Can anybody tell me why?

Appreciate any help,
-Ben

Ps. the video causing the error is:
http://www.youtube.com/watch?v=PcmEFkaIdS8

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

2. Computer Software

jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
Android Developers | Google Groups
Android Developers. Discuss developing
Android applications using the Android
framework. Get help with troubleshooting
apps, advice on implementation, ...
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj






iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
 http://www.freewebs.com/recordindstry/
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
--~--~---------~--~----~------------~-------~--~----~

3. Market API to access app descriptions and ratings?

4. Announcing OpenCORE 2.02 release

5. tools/geo seems to be missing.

6. BroadcastReceiver to log PhoneState during of my activity

7. Gartner report on android sales