Custom XML Attributes For Your Custom Android Widgets
In the last part of my Custom UI Tutorial, commenter Knut asked: Is there an easy way to declare the listener in XML (similar to the android:onClick=”onMyButtonClick” in the stock controls)? This is a great question, and in answering his question, I’ll go ahead and show you how to create other custom attributes you can [...]