标签:
/** Called when the user clicks the Send button */
public void sendMessage(View view) {
// Do something in response to button
}
In order for the system to match this method to the method name given to android:onClick
, the signature must be exactly as shown. Specifically, the method must:
View
as the only parameter (this will be the View
that was clicked) //有且只有一个View类型的形参(希望被点到的View)标签:
原文地址:http://www.cnblogs.com/bvin/p/5007428.html