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 service.

Hi Folks,

Some please help on this.

*Class MyService:*

public class MyService extends Service {

@Override
    public void onCreate() {
        super.onCreate();
        Log.d(TAG, "Creating MyFavesHappening service");

    }

@Override
    public void onDestroy() {
        super.onDestroy();

    }

    @Override
    public IBinder onBind(Intent arg0) {
        return null;
    }

}

*class AlliedService:*

public class AlliedService extends Service {

@Override
    public void onCreate() {
        super.onCreate();
        Log.d(TAG, "Creating MyFavesHappening service");

    }

@Override
    public void onDestroy() {
        super.onDestroy();

    }

    @Override
    public IBinder onBind(Intent arg0) {
        return null;
    }

}



The MyService class is registered in AndroidManifest.xml

Now that I dynamically want to start / stop AlliedService on some event in
MyService.

Could anyone please help through this..

Regards,
da manzee

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

2. Launch android emulator on mingw/msys, but failed

Hi,
I built the android emulator source on mingw/msys, then run "./
emulator" in msys console as below, but failed.

$ ./emulator

This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.
.....

Is anyone who can help me?


Edward
--~--~---------~--~----~------------~-------~--~----~

3. HelloGallery Example!!

4. H263 video recording

5. Credit card chargeback scam

6. About the OpenWnn project

7. HTTP headers manipulation