Hello,

On all views (layouts or widgets) there are three different constructors.
1) View(Context)
2) View(Context,AttributeSet)
3) View(Context,AttributeSet,int defStyle)

If I were designing and coding the first few components of an anrdoid app, 
which constructors should I be mindful of implementing for re-usable 
components? My constructors do have initialization logic such as setting 
labels, default text and adding other widgets to layouts. Once, I call 
super() in my constructor, will these three variables Context, AttributeSet 
and defStyle be available to all code regardless of which constructor is 
called (some might be null for the shorter constructor)? 

Hope this question makes sense.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to