2

How to calculate the android 3.0 tablet screen bottom system bar(contain back button,menus button,etc)height?

VSC
  • 272
  • 3
  • 12

1 Answers1

0

Chris Banes mentioned this in a recent Droidcon talk. The whole talk is super relevant, but here's a link to the part that answers your question (for all form factors, including tablet).

https://youtu.be/_mGDMVRO3iE?t=1093

This is the correct way to get status bar and navigation bar sizes: setOnApplyWindowListener

I hope this helps!

keith
  • 3,105
  • 2
  • 29
  • 34