Hey, that was handy :) On Tue, Jan 26, 2010 at 9:40 AM, skink <[email protected]> wrote:
> > > On Jan 25, 9:46 pm, Antti Karhu <[email protected]> wrote: > > If all of EditText listeners should contain identical code, you could > > implement the listener interface instead of using anonymous classes. > > > > well, anonymous class will work as well: > > OnClickListener listener = new OnClickListener { > public void onClick(params) { > // Do something > } > } > > a.setOnClickListener(listener); > b.setOnClickListener(listener); > c.setOnClickListener(listener); > > pskink > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > [email protected]<android-beginners%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android 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

