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. How to do we take a Screenshot using ADB Comand Line

Read through Couple of articles , Most of them point to the DDMS
through that we could take the Screenshot.

However i am trying to capture the Emulator  screen from the Command
Line.
Not Sure how to tweak the framebuffer /Surface flinger to do the job.

or is there any app that we could run in the background and get the
job done.

help will be much appreciated.

Thanks and Regards
Prakash Vel


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

2. problem with Hello, Gallery R.styleable not resolve

Thanks for catching the typo!  I should have just done a copy/paste... :)
Glad I could help somewhat.

Thanks,
Justin
----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Mon, Aug 31, 2009 at 9:39 PM, Bui Quang Hao(Johny.Bui) <








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

3. Create New TextView Style....

4. Showing directions or drawing required path on Google Maps

5. setPadding() in onDraw() causing ListView draw loop

6. Problem in Geoceder Address and Country name are not Displaying

7. Services - best way to bind