android - View.postDelayed why is it an instance method? -
in android platform, view object has instance method postdelayed, according documentation:
causes runnable added message queue, run after specified amount of time elapses. runnable run on user interface thread.
my questions:
- why method has instance method of view?
- would different if call postdelayed in 1 view instead of another?
thanks.
why method has instance method of view?
it references mattachinfo
data member, in current implementation, , in turn data member's mhandler
, handler
postdelayed()
work (if mattachinfo
not null
). welcome read of in the source code.
would different if call postdelayed in 1 view instead of another?
in theory, 2 view
instances work separate handler
instances. however, standpoint of documented behavior, there should no difference.
Comments
Post a Comment