Thursday, April 24, 2014

Get navigation bar (TSB bar) height

The dim value is defined as com.android.internal.R.dimen.navigation_bar_height.

 final int naviHeight = mContext.getResources().getDimensionPixelSize(
                    com.android.internal.R.dimen.navigation_bar_height);

No comments:

Post a Comment

Thrift fails on Windows - thrift failed error: The command line is too long.

Meet a thrift compiling failure on my project on Windows 7. Using Maven in IntelliJ so I choiced maven-thrift-pluging for thrift files. For ...