Tuesday, August 2, 2011

Re: [android-developers] Re: instantiating widgets from an xml layout within a custom View class leads to nullpointerexception

http://developer.android.com/reference/android/view/View.html#onFinishInflate()

>>

Finalize inflating a view from XML. This is called as the last phase of
inflation, after all child views have been added.

Even if the subclass overrides onFinishInflate, they should always be
sure to call the super method, so that we get called.

<<

03.08.2011 0:35, CresCoJeff пишет:
> What should I add to make CustomView 'aware' of its elements? Is it
> necessary to use the LayoutInflater class perhaps?

--
Kostya Vasilyev

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment