Reputation: 277
I want to know how a View
is created in Android
. On a View
object creation which functions are called?Initially constructors
will be called.Next what? And so on.
If anybody know the sequence of functions called after object creation,Please reply me.
Thanks
Upvotes: 0
Views: 864
Reputation: 8242
1) Constructor : to initialize variables
2) onMeansure : to prepare canvas , set Width and height
3)OnDraw() : to draw actual view .
now onDraw()
will continuously be called after a particular interval which depends upon display/processor and UI eventsenter code here or on calling invalidate()
Upvotes: 1