The method you declare in the android:onClick
attribute must have a signature exactly as shown above. Specifically, the method must:
你在 android:onClick 属性中定义的方法必须满足如下条件:
· 是 公共的 public
· 返回 void
·
· 定义一个 view 作为它的唯一参数 (这就是那个被点击段 View )