How to handle button clicks using the XML onClick within Fragments
Pre-Honeycomb (Android 3), each Activity was registered to handle button clicks via the onClick tag in a Layout’s XML: android:onClick=”myClickMethod” Within that method you can use view.getId() and a switch statement to do the button logic. With the introduction of Honeycomb I’m breaking these Activities into Fragments which can be reused inside many different Activities. Most … Read more