给父级控件 设置两个属性,可以把焦点抢夺过去,最好是没有任何事件的父级控件(本人比较喜欢在xml文件的跟布局设置,因为页面的跟布局一般情况下,是不会设置任何事件的)

 

android:focusable="true"      android:focusableInTouchMode="true"

相关文章:

  • 2021-08-27
  • 2021-11-24
  • 2021-06-02
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
猜你喜欢
  • 2021-07-20
  • 2021-06-14
  • 2021-07-16
  • 2022-12-23
  • 2021-12-19
  • 2021-07-12
  • 2022-12-23
相关资源
相似解决方案