Back to project page FadingActionBar.
The source code is released under:
Apache License
If you think the Android project FadingActionBar listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.manuelpeinado.fadingactionbar; /*from w w w .j a v a 2 s .c o m*/ import android.content.Context; import android.view.WindowManager; public class Utils { public static int getDisplayHeight(Context context) { WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); @SuppressWarnings("deprecation") int displayHeight = wm.getDefaultDisplay().getHeight(); return displayHeight; } }