Tingqiang Ma wrote: > I am a little confused by this. > > For example, when I call > > *mButtonApply=(MyButton) findViewById(R.id.button_apply);* > > Which constructor of MyButton will be called?
None. findViewById() finds an existing View, it does not create one. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

