今天用TextView模拟ImageButton,发现实现setOnTouchListener后不能响应ACTION_DOWN事件,解决方法如下:

recordTextView = (TextView) findViewById(R.id.record);
recordTextView.setClickable(
true);
 

相关文章:

  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-01-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-12-18
相关资源
相似解决方案