From that I\'ve read you can assign a onClick handler to a button in two ways.
onClick
Using the android:onClick XML attribute where you just use t
android:onClick
I am Write this code in xml file ...
And write this code in fragment...
public void register(View view) { }