Ways to Implement an OnClick Listener in Android

I hate inline solutions, so I went in search of alternatives to the popular inline onclick listener.

I found the start of what I was looking for in this blog post

http://tseng-blog.nge-web.net/blog/2009/02/14/implementing-listeners-in-your-android-java-application/

I’m going to use a hybrid of inline. While I’ll create an online listener, they will always call a function outside the listener. This way, I ‘ve have the entire scope of the class available.

Comments are closed.

July 2019
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031