Capture button release in Android

后端 未结 5 1916
我寻月下人不归
我寻月下人不归 2020-12-01 17:55

Is it possible to capture release of a button just as we capture click using onClickListener() and OnClick() ?

I want to increase size of a

5条回答
  •  旧时难觅i
    2020-12-01 18:33

    You might be able to do this by overriding the onKeyDown and onKeyUp. These are both inherited from android.widget.TextView. Please see the android.widget.Button doc for (a bit) more info.

提交回复
热议问题