title: Android onClick in XML vs. OnClickListener
body: <p>I realize that a similarly-worded question has been asked before, but this is different. I am pretty new at developing android apps and I have three questions regarding the difference(s) between the <code>android:onclick=""</code> XML attribute and the <code>setOnClickListener</code> method.</p>
  
  <ol>
  <li><p>What are the differences between the two? Is the difference between the two implementations found at compile time or run time or both?</p></li>
  <li><p>What use cases are favorable to which implementation?</p></li>
  <li><p>What difference(s) does the use of fragments in Android make in implementation choice?</p></li>
  </ol>