Youclass extends Button{
}

解决方案 »

  1.   

    反对上面两位。
    最好用Canvas不用Button,什么原因,好好看书就知道了◎
      

  2.   

    怎么来激发button的单击事件?
      

  3.   

    怎么来激发button的单击事件?
      

  4.   

    同意hello_wyq(半瓶墨水): 
    反对上面两位。
    最好用Canvas不用Button,什么原因,好好看书就知道了◎
    //
    但问题还是没有解决!!
      

  5.   

    YourButton extends Canvas{//Canvas is better ,lightware//then add all the listener to your button and implements all the methods