Android下获取状态栏的高度
摘要:
/** * * @param activity * @return > 0 success; <= 0 fail */ public static int getStatusHeight(Activity activity){ int statusHeight = 0; Rect localRect = new Rect(); activity.getWindow().getDecorView( ).getWindowVisibleDisplayFrame(localRect); ... 阅读全文
posted @ 2012-12-06 10:48 梦书 阅读(8363) 评论(0) 推荐(1) 编辑