How to find the height of the bar in which soft keys widgets are placed? | developer.brewmp.com How to find the height of the bar in which soft keys widgets are placed? | developer.brewmp.com

Developer

How to find the height of the bar in which soft keys widgets are placed?

Forums:

My app is using softkeys, the OS automatically displays a bar at the bottom of the screen into which the text for the softkeys is placed.

 

I would additionally like to place some buttons on top of this bar, this I can do successfully, however I would like to find out the height of the bar so that I can position my icons so that they are vertically centered within the bar. In addition I would like to shrink the size of the icons in proportion to height of the bar so the bar and icons are always in nice looking proportion on devices with differing screen sizes.

 

How do I find out the height of the bar, and what's the best way to shrink the icons to scale them to fit?

 

Thanks