onHoverListener doesn't work in Android

前端 未结 3 1048
南方客
南方客 2020-12-16 20:27

In android document, it mentions supporting the \"hover\" event since 4.0 (ie. API level 14 and up). But somehow, it doesn\'t work. Even I tried out the sample code in ApiDe

相关标签:
3条回答
  • 2020-12-16 20:28

    Hovering requires support from the hardware. The only thing likely to support it is a stylus. It won't work with just your finger.

    0 讨论(0)
  • 2020-12-16 20:41

    I suggest to Turn on 'Accessibility' and 'Explore by touch' feature in settings. When these features are off, the hover action will be treated as touch actions.

    0 讨论(0)
  • 2020-12-16 20:48

    try using OnFocusChangeListener(). PS worked for me

    0 讨论(0)
提交回复
热议问题