public class PolyvScreenTool
extends java.lang.Object
构造器和说明 |
---|
PolyvScreenTool() |
限定符和类型 | 方法和说明 |
---|---|
static int[] |
getDisplayWH(android.app.Activity activity) |
static int |
getNavigationBarHeight(android.content.Context context) |
static int[] |
getNormalWH(android.app.Activity activity)
获取包含状态栏的屏幕宽度和高度
|
static int |
getStatusBarHeight(android.content.Context context) |
static boolean |
hasVirtualNavigationBar(android.content.Context context) |
static void |
reSetStatusBar(android.app.Activity activity)
重置状态栏使其在横屏下全屏,在竖屏下显示
|
static void |
setHideStatusBarListener(android.app.Activity activity,
long millissecond)
设置隐藏状态栏的监听器
|
public static void setHideStatusBarListener(android.app.Activity activity, long millissecond)
activity
- millissecond
- 隐藏间隔,毫秒public static int[] getNormalWH(android.app.Activity activity)
activity
- public static void reSetStatusBar(android.app.Activity activity)
activity
- public static int getStatusBarHeight(android.content.Context context)
public static int getNavigationBarHeight(android.content.Context context)
public static int[] getDisplayWH(android.app.Activity activity)
public static boolean hasVirtualNavigationBar(android.content.Context context)