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
Hovering requires support from the hardware. The only thing likely to support it is a stylus. It won't work with just your finger.
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.
try using OnFocusChangeListener()
.
PS worked for me