Proper way to implement Android XML onClick attribute in Activity
<p>I have used the <a href="http://developer.android.com/reference/android/view/View.html#attr_android%3aonClick" rel="nofollow">android:onClick</a> attribute extensively in my XML layouts for my Android application.</p>

<p><strong>Example:</strong></p>

<pre><code>&lt;Button
    android:id="@+id/exampleButton"
    android:onClick="onButtonClick" /&gt;
</code></pre>

<p>Is it proper to create an Interface to enforce the implementation of those onClick methods in Activities that use that layout file?</p>

<pre><code>public interface MyButtonInterface {
    public onButtonClick(View v);
}
</code></pre>
