How to check if the device has virtual buttons?

1

How to identify devices that have virtual buttons to treat the space they occupy on the screen?

    
asked by anonymous 13.03.2017 / 20:31

1 answer

0
___ erkimt ___ How to check if the device has virtual buttons? ______ qstntxt ___

How to identify devices that have virtual buttons to treat the space they occupy on the screen?

    
______ ___ azszpr189783

You can check if the device has the "virtual" button using the hasPermanentMenuKey of Android.

Example:

ViewConfiguration.get(context).hasPermanentMenuKey(); // retorna true | false
    
___
13.03.2017 / 20:46