是不是8.0无所谓,只想隐藏华为手机虚拟按键隐藏

掺水油, 积分 342, 距离下一级还需 158 积分
掺水油, 积分 342, 距离下一级还需 158 积分
发表于 7&天前
掺水油, 积分 342, 距离下一级还需 158 积分
主题 : 21|帖子 : 66|积分 : 342
该用户从未签到
不喜欢折腾,只想稳定版尽快更新,我只求一个手势操作,是不是8.0都无所谓
| 来自:OnePlus5T |
焦油, 积分 111, 距离下一级还需 89 积分
焦油, 积分 111, 距离下一级还需 89 积分
发表于 7&天前
焦油, 积分 111, 距离下一级还需 89 积分
主题 : 5|帖子 : 46|积分 : 111
该用户从未签到
8.0我也无所谓,虚拟按键可以隐藏啊,不过在桌面没法隐藏,其余的大部分应用都可以
| 来自:OnePlus5T |
掺水油, 积分 342, 距离下一级还需 158 积分
掺水油, 积分 342, 距离下一级还需 158 积分
发表于 7&天前
掺水油, 积分 342, 距离下一级还需 158 积分
主题 : 21|帖子 : 66|积分 : 342
该用户从未签到
<font color="#.0我也无所谓,虚拟按键可以隐藏啊,不过在桌面没法隐藏,其余的大部分应用都可以
隐藏了如果返回还得上划呼出,太麻烦,手势操作更方便些
| 来自:OnePlus5T |
煤油, 积分 2281, 距离下一级还需 2719 积分
煤油, 积分 2281, 距离下一级还需 2719 积分
发表于 7&天前
煤油, 积分 2281, 距离下一级还需 2719 积分
主题 : 1|帖子 : 374|积分 : 2281
该用户从未签到
8.0我也无所谓,虚拟按键可以隐藏啊,不过在桌面没法隐藏,其余的大部分应用都可以
焦油, 积分 54, 距离下一级还需 146 积分
焦油, 积分 54, 距离下一级还需 146 积分
发表于 7&天前
焦油, 积分 54, 距离下一级还需 146 积分
主题 : 1|帖子 : 20|积分 : 54
该用户从未签到
升级了8.0 结果越来越不好用了
| 来自:OnePlus5T |
焦油, 积分 111, 距离下一级还需 89 积分
焦油, 积分 111, 距离下一级还需 89 积分
发表于 7&天前
焦油, 积分 111, 距离下一级还需 89 积分
主题 : 5|帖子 : 46|积分 : 111
该用户从未签到
隐藏了如果返回还得上划呼出,太麻烦,手势操作更方便些
用惯了就行了[e]1f60a[/e]
| 来自:OnePlus5T |
焦油, 积分 70, 距离下一级还需 130 积分
焦油, 积分 70, 距离下一级还需 130 积分
发表于 7&天前
焦油, 积分 70, 距离下一级还需 130 积分
主题 : 0|帖子 : 21|积分 : 70
该用户从未签到
<font color="#.0我也无所谓,虚拟按键可以隐藏啊,不过在桌面没法隐藏,其余的大部分应用都可以
你是处女座吧
| 来自:OnePlus5T |
焦油, 积分 175, 距离下一级还需 25 积分
焦油, 积分 175, 距离下一级还需 25 积分
发表于 7&天前
焦油, 积分 175, 距离下一级还需 25 积分
主题 : 2|帖子 : 98|积分 : 175
该用户从未签到
还有手势要单手指操作的
| 来自:OnePlus3T |
焦油, 积分 141, 距离下一级还需 59 积分
焦油, 积分 141, 距离下一级还需 59 积分
发表于 7&天前
焦油, 积分 141, 距离下一级还需 59 积分
主题 : 17|帖子 : 81|积分 : 141
该用户从未签到
我只要手势,但是不想公测版
| 来自:OnePlus5T |
一加手机1勋章
一加手机3勋章
OnePlus 5T
一加手机5T勋章
狗年纪念勋章
2018狗年勋章
深圳市万普拉斯科技有限公司 版权所有(后使用快捷导航没有帐号?
只需一步,快速开始
查看: 739|回复: 6
在线时间0 小时G币36 最后登录注册时间帖子阅读权限40UID
高中生, 积分 115, 距离下一级还需 85 积分
TA的每日心情慵懒 01:34签到天数: 13 天[LV.3]偶尔看看II
G币36 最后登录注册时间
马上注册,结交更多机友,下载更多应用,让你轻松玩转手机。
已有帐号?   下载游戏和软件,请【】进入机锋市场!
之前内测的时候升了8.0,然后用7.0隐藏虚拟按键的软件,结果隐藏不了,然后百度搜了说8.0无法隐藏。现在想问问大家是不是8.0真的无解了?
在线时间0 小时G币36 最后登录注册时间帖子阅读权限40UID
高中生, 积分 115, 距离下一级还需 85 积分
TA的每日心情慵懒 01:34签到天数: 13 天[LV.3]偶尔看看II
G币36 最后登录注册时间
在线时间0 小时G币12 最后登录注册时间帖子阅读权限20UID
小学生, 积分 42, 距离下一级还需 8 积分
TA的每日心情擦汗 15:42签到天数: 5 天[LV.2]偶尔看看I
G币12 最后登录注册时间
本帖最后由 guohafoo 于
17:47 编辑
解决办法如图
(589.36 KB)
17:45 上传
点击文件名下载附件
(589.36 KB)
17:47 上传
点击文件名下载附件
在线时间0 小时G币279 最后登录注册时间帖子阅读权限50UID
大学专科, 积分 249, 距离下一级还需 151 积分
TA的每日心情怒 23:43签到天数: 101 天[LV.6]常住居民II
G币279 最后登录注册时间
本帖最后由 cocoyaya 于
17:47 编辑
之前内测的时候升了8.0,然后用7.0隐藏虚拟按键的软件,结果隐藏不了,然后百度搜了说8.0无法隐藏。现在想问问大家是不是8.0真的无解了?
可以,看......................台版8.0
17:45 上传
17:47 上传
在线时间0 小时G币12 最后登录注册时间帖子阅读权限20UID
小学生, 积分 42, 距离下一级还需 8 积分
TA的每日心情擦汗 15:42签到天数: 5 天[LV.2]偶尔看看I
G币12 最后登录注册时间
cocoyaya 发表于
你没理解楼主意思——永久隐藏
在线时间0 小时G币31 最后登录注册时间帖子阅读权限30UID
初中生, 积分 70, 距离下一级还需 30 积分
TA的每日心情开心 11:09签到天数: 13 天[LV.3]偶尔看看II
G币31 最后登录注册时间
怎么可能。我今天升级的。现在就是隐藏按键啊。一点问题没有
在线时间10 小时G币27 最后登录注册时间帖子阅读权限1UID1633486
头像被屏蔽
TA的每日心情奋斗 00:30签到天数: 4 天[LV.2]偶尔看看I
G币27 最后登录注册时间
提示: 作者被禁止或删除 内容自动屏蔽
Powered by原油, 积分 41, 距离下一级还需 9 积分
原油, 积分 41, 距离下一级还需 9 积分
原油, 积分 41, 距离下一级还需 9 积分
主题 : 4|帖子 : 11|积分 : 41
该用户从未签到
| 来自:OnePlus5T |
<p id="rate_6845" onmouseover="showTip(this)" tip="很给力!&加油 + 1
勾兑油, 积分 897, 距离下一级还需 103 积分
勾兑油, 积分 897, 距离下一级还需 103 积分
勾兑油, 积分 897, 距离下一级还需 103 积分
主题 : 20|帖子 : 601|积分 : 897
该用户从未签到
| 来自:OnePlus5T |
原油, 积分 46, 距离下一级还需 4 积分
原油, 积分 46, 距离下一级还需 4 积分
原油, 积分 46, 距离下一级还需 4 积分
主题 : 3|帖子 : 25|积分 : 46
该用户从未签到
虚拟按键可以隐藏啊[e]1f601[/e]
| 来自:OnePlus5T |
掺水油, 积分 419, 距离下一级还需 81 积分
掺水油, 积分 419, 距离下一级还需 81 积分
掺水油, 积分 419, 距离下一级还需 81 积分
主题 : 17|帖子 : 264|积分 : 419
该用户从未签到
急什么,年前说发就发了个公测
| 来自:OnePlus5T |
掺水油, 积分 290, 距离下一级还需 210 积分
掺水油, 积分 290, 距离下一级还需 210 积分
掺水油, 积分 290, 距离下一级还需 210 积分
主题 : 10|帖子 : 139|积分 : 290
该用户从未签到
系统升级就是为了解决老机型续航长的BUG
| 来自:OnePlus5T |
原油, 积分 41, 距离下一级还需 9 积分
原油, 积分 41, 距离下一级还需 9 积分
原油, 积分 41, 距离下一级还需 9 积分
主题 : 4|帖子 : 11|积分 : 41
该用户从未签到
不能隐藏虚拟按键实在是太难受了
| 来自:OnePlus5T |
OnePlus 5T
一加手机5T勋章
深圳市万普拉斯科技有限公司 版权所有(Android 自动隐藏虚拟按键和沉浸式状态栏 - 简书
Android 自动隐藏虚拟按键和沉浸式状态栏
先贴上设置虚拟按键的代码:
public void setHideVirtualKey(Window window){
//保持布局状态
int uiOptions = View.SYSTEM_UI_FLAG_LAYOUT_STABLE|
//布局位于状态栏下方
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION|
View.SYSTEM_UI_FLAG_FULLSCREEN|
//隐藏导航栏
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION|
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN;
if (Build.VERSION.SDK_INT&=19){
uiOptions |= 0x;
uiOptions |= View.SYSTEM_UI_FLAG_LOW_PROFILE;
window.getDecorView().setSystemUiVisibility(uiOptions);
也许你再问,我在什么时候去调用呢,要是弹出来了又怎么隐藏呢,别担心:
window.getDecorView().setOnSystemUiVisibilityChangeListener(new View.OnSystemUiVisibilityChangeListener() {
public void onSystemUiVisibilityChange(int visibility) {
setHideVirtualKey(window);
这样就不用担心(≧▽≦)/啦啦啦.
补充一点虚拟按键和状态栏的知识。
设置虚拟按键变成三个小点:
Window window = getWindow();
WindowManager.LayoutParams params = window.getAttributes();
params.systemUiVisibility = View.SYSTEM_UI_FLAG_LOW_PROFILE;
window.setAttributes(params);
判断是否有虚拟按键
public boolean checkDeviceHasNavigationBar(Context context) {
boolean hasNavigationBar =
Resources rs = context.getResources();
int id = rs.getIdentifier("config_showNavigationBar", "bool", "android");
if (id & 0) {
hasNavigationBar = rs.getBoolean(id);
Class systemPropertiesClass = Class.forName("android.os.SystemProperties");
Method m = systemPropertiesClass.getMethod("get", String.class);
String navBarOverride = (String) m.invoke(systemPropertiesClass, "qemu.hw.mainkeys");
if ("1".equals(navBarOverride)) {
hasNavigationBar =
} else if ("0".equals(navBarOverride)) {
hasNavigationBar =
} catch (Exception e) {
return hasNavigationB
sdk版本19以上设置沉浸式状态栏:
if (Build.VERSION.SDK_INT &= Build.VERSION_CODES.KITKAT) {
getWindow().addFlags(
WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
SystemBarTintManager tintManager = new SystemBarTintManager(this);
tintManager.setStatusBarTintColor(Color.TRANSPARENT);
tintManager.setStatusBarTintEnabled(true);
import android.annotation.SuppressL
import android.annotation.TargetA
import android.app.A
import android.content.C
import android.content.res.C
import android.content.res.R
import android.content.res.TypedA
import android.graphics.drawable.D
import android.os.B
import android.util.DisplayM
import android.util.TypedV
import android.view.G
import android.view.V
import android.view.ViewC
import android.view.ViewG
import android.view.W
import android.view.WindowM
import android.widget.FrameLayout.LayoutP
import java.lang.reflect.M
* Class to manage status and navigation bar tint effects when using KitKat
* translucent system UI modes.
public class SystemBarTintManager {
// Android allows a system property to override the presence of the navigation bar.
// Used by the emulator.
// See https://github.com/android/platform_frameworks_base/blob/master/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java#L1076
if (Build.VERSION.SDK_INT &= Build.VERSION_CODES.KITKAT) {
Class c = Class.forName("android.os.SystemProperties");
Method m = c.getDeclaredMethod("get", String.class);
m.setAccessible(true);
sNavBarOverride = (String) m.invoke(null, "qemu.hw.mainkeys");
} catch (Throwable e) {
sNavBarOverride =
* The default system bar tint color value.
public static final int DEFAULT_TINT_COLOR = 0x;
private static String sNavBarO
private final SystemBarConfig mC
private boolean mStatusBarA
private boolean mNavBarA
private boolean mStatusBarTintE
private boolean mNavBarTintE
private View mStatusBarTintV
private View mNavBarTintV
* Constructor. Call this in the host activity onCreate method after its
* content view has been set. You should always create new instances when
* the host activity is recreated.
* @param activity The host activity.
@TargetApi(19)
public SystemBarTintManager(Activity activity) {
Window win = activity.getWindow();
ViewGroup decorViewGroup = (ViewGroup) win.getDecorView();
if (Build.VERSION.SDK_INT &= Build.VERSION_CODES.KITKAT) {
// check theme attrs
int[] attrs = {android.R.attr.windowTranslucentStatus,
android.R.attr.windowTranslucentNavigation};
TypedArray a = activity.obtainStyledAttributes(attrs);
mStatusBarAvailable = a.getBoolean(0, false);
mNavBarAvailable = a.getBoolean(1, false);
} finally {
a.recycle();
// check window flags
WindowManager.LayoutParams winParams = win.getAttributes();
int bits = WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS;
if ((winParams.flags & bits) != 0) {
mStatusBarAvailable =
bits = WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION;
if ((winParams.flags & bits) != 0) {
mNavBarAvailable =
mConfig = new SystemBarConfig(activity, mStatusBarAvailable, mNavBarAvailable);
// device might not have virtual navigation keys
if (!mConfig.hasNavigtionBar()) {
mNavBarAvailable =
if (mStatusBarAvailable) {
setupStatusBarView(activity, decorViewGroup);
if (mNavBarAvailable) {
setupNavBarView(activity, decorViewGroup);
* Enable tinting of the system status bar.
* If the platform is running Jelly Bean or earlier, or translucent system
* UI modes have not been enabled in either the theme or via window flags,
* then this method does nothing.
* @param enabled True to enable tinting, false to disable it (default).
public void setStatusBarTintEnabled(boolean enabled) {
mStatusBarTintEnabled =
if (mStatusBarAvailable) {
mStatusBarTintView.setVisibility(enabled ? View.VISIBLE : View.GONE);
* Enable tinting of the system navigation bar.
* If the platform does not have soft navigation keys, is running Jelly Bean
* or earlier, or translucent system UI modes have not been enabled in either
* the theme or via window flags, then this method does nothing.
* @param enabled True to enable tinting, false to disable it (default).
public void setNavigationBarTintEnabled(boolean enabled) {
mNavBarTintEnabled =
if (mNavBarAvailable) {
mNavBarTintView.setVisibility(enabled ? View.VISIBLE : View.GONE);
* Apply the specified color tint to all system UI bars.
* @param color The color of the background tint.
public void setTintColor(int color) {
setStatusBarTintColor(color);
setNavigationBarTintColor(color);
* Apply the specified drawable or color resource to all system UI bars.
* @param res The identifier of the resource.
public void setTintResource(int res) {
setStatusBarTintResource(res);
setNavigationBarTintResource(res);
* Apply the specified drawable to all system UI bars.
* @param drawable The drawable to use as the background, or null to remove it.
public void setTintDrawable(Drawable drawable) {
setStatusBarTintDrawable(drawable);
setNavigationBarTintDrawable(drawable);
* Apply the specified alpha to all system UI bars.
* @param alpha The alpha to use
public void setTintAlpha(float alpha) {
setStatusBarAlpha(alpha);
setNavigationBarAlpha(alpha);
* Apply the specified color tint to the system status bar.
* @param color The color of the background tint.
public void setStatusBarTintColor(int color) {
if (mStatusBarAvailable) {
mStatusBarTintView.setBackgroundColor(color);
* Apply the specified drawable or color resource to the system status bar.
* @param res The identifier of the resource.
public void setStatusBarTintResource(int res) {
if (mStatusBarAvailable) {
mStatusBarTintView.setBackgroundResource(res);
* Apply the specified drawable to the system status bar.
* @param drawable The drawable to use as the background, or null to remove it.
@SuppressWarnings("deprecation")
public void setStatusBarTintDrawable(Drawable drawable) {
if (mStatusBarAvailable) {
mStatusBarTintView.setBackgroundDrawable(drawable);
* Apply the specified alpha to the system status bar.
* @param alpha The alpha to use
@TargetApi(11)
public void setStatusBarAlpha(float alpha) {
if (mStatusBarAvailable && Build.VERSION.SDK_INT &= Build.VERSION_CODES.HONEYCOMB) {
mStatusBarTintView.setAlpha(alpha);
* Apply the specified color tint to the system navigation bar.
* @param color The color of the background tint.
public void setNavigationBarTintColor(int color) {
if (mNavBarAvailable) {
mNavBarTintView.setBackgroundColor(color);
* Apply the specified drawable or color resource to the system navigation bar.
* @param res The identifier of the resource.
public void setNavigationBarTintResource(int res) {
if (mNavBarAvailable) {
mNavBarTintView.setBackgroundResource(res);
* Apply the specified drawable to the system navigation bar.
* @param drawable The drawable to use as the background, or null to remove it.
@SuppressWarnings("deprecation")
public void setNavigationBarTintDrawable(Drawable drawable) {
if (mNavBarAvailable) {
mNavBarTintView.setBackgroundDrawable(drawable);
* Apply the specified alpha to the system navigation bar.
* @param alpha The alpha to use
@TargetApi(11)
public void setNavigationBarAlpha(float alpha) {
if (mNavBarAvailable && Build.VERSION.SDK_INT &= Build.VERSION_CODES.HONEYCOMB) {
mNavBarTintView.setAlpha(alpha);
* Get the system bar configuration.
* @return The system bar configuration for the current device configuration.
public SystemBarConfig getConfig() {
* Is tinting enabled for the system status bar?
* @return True if enabled, False otherwise.
public boolean isStatusBarTintEnabled() {
return mStatusBarTintE
* Is tinting enabled for the system navigation bar?
* @return True if enabled, False otherwise.
public boolean isNavBarTintEnabled() {
return mNavBarTintE
private void setupStatusBarView(Context context, ViewGroup decorViewGroup) {
mStatusBarTintView = new View(context);
LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT, mConfig.getStatusBarHeight());
params.gravity = Gravity.TOP;
if (mNavBarAvailable && !mConfig.isNavigationAtBottom()) {
params.rightMargin = mConfig.getNavigationBarWidth();
mStatusBarTintView.setLayoutParams(params);
mStatusBarTintView.setBackgroundColor(DEFAULT_TINT_COLOR);
mStatusBarTintView.setVisibility(View.GONE);
decorViewGroup.addView(mStatusBarTintView);
private void setupNavBarView(Context context, ViewGroup decorViewGroup) {
mNavBarTintView = new View(context);
if (mConfig.isNavigationAtBottom()) {
params = new LayoutParams(LayoutParams.MATCH_PARENT, mConfig.getNavigationBarHeight());
params.gravity = Gravity.BOTTOM;
params = new LayoutParams(mConfig.getNavigationBarWidth(), LayoutParams.MATCH_PARENT);
params.gravity = Gravity.RIGHT;
mNavBarTintView.setLayoutParams(params);
mNavBarTintView.setBackgroundColor(DEFAULT_TINT_COLOR);
mNavBarTintView.setVisibility(View.GONE);
decorViewGroup.addView(mNavBarTintView);
* Class which describes system bar sizing and other characteristics for the current
* device configuration.
public static class SystemBarConfig {
private static final String STATUS_BAR_HEIGHT_RES_NAME = "status_bar_height";
private static final String NAV_BAR_HEIGHT_RES_NAME = "navigation_bar_height";
private static final String NAV_BAR_HEIGHT_LANDSCAPE_RES_NAME = "navigation_bar_height_landscape";
private static final String NAV_BAR_WIDTH_RES_NAME = "navigation_bar_width";
private static final String SHOW_NAV_BAR_RES_NAME = "config_showNavigationBar";
private final boolean mTranslucentStatusB
private final boolean mTranslucentNavB
private final int mStatusBarH
private final int mActionBarH
private final boolean mHasNavigationB
private final int mNavigationBarH
private final int mNavigationBarW
private final boolean mInP
private final float mSmallestWidthDp;
private SystemBarConfig(Activity activity, boolean translucentStatusBar, boolean traslucentNavBar) {
Resources res = activity.getResources();
mInPortrait = (res.getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT);
mSmallestWidthDp = getSmallestWidthDp(activity);
mStatusBarHeight = getInternalDimensionSize(res, STATUS_BAR_HEIGHT_RES_NAME);
mActionBarHeight = getActionBarHeight(activity);
mNavigationBarHeight = getNavigationBarHeight(activity);
mNavigationBarWidth = getNavigationBarWidth(activity);
mHasNavigationBar = (mNavigationBarHeight & 0);
mTranslucentStatusBar = translucentStatusB
mTranslucentNavBar = traslucentNavB
@TargetApi(14)
private int getActionBarHeight(Context context) {
int result = 0;
if (Build.VERSION.SDK_INT &= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
TypedValue tv = new TypedValue();
context.getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true);
result = TypedValue.complexToDimensionPixelSize(tv.data, context.getResources().getDisplayMetrics());
@TargetApi(14)
private int getNavigationBarHeight(Context context) {
Resources res = context.getResources();
int result = 0;
if (Build.VERSION.SDK_INT &= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
if (hasNavBar(context)) {
if (mInPortrait) {
key = NAV_BAR_HEIGHT_RES_NAME;
key = NAV_BAR_HEIGHT_LANDSCAPE_RES_NAME;
return getInternalDimensionSize(res, key);
@TargetApi(14)
private int getNavigationBarWidth(Context context) {
Resources res = context.getResources();
int result = 0;
if (Build.VERSION.SDK_INT &= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
if (hasNavBar(context)) {
return getInternalDimensionSize(res, NAV_BAR_WIDTH_RES_NAME);
@TargetApi(14)
private boolean hasNavBar(Context context) {
Resources res = context.getResources();
int resourceId = res.getIdentifier(SHOW_NAV_BAR_RES_NAME, "bool", "android");
if (resourceId != 0) {
boolean hasNav = res.getBoolean(resourceId);
// check override flag (see static block)
if ("1".equals(sNavBarOverride)) {
} else if ("0".equals(sNavBarOverride)) {
return hasN
} else { // fallback
return !ViewConfiguration.get(context).hasPermanentMenuKey();
private int getInternalDimensionSize(Resources res, String key) {
int result = 0;
int resourceId = res.getIdentifier(key, "dimen", "android");
if (resourceId & 0) {
result = res.getDimensionPixelSize(resourceId);
@SuppressLint("NewApi")
private float getSmallestWidthDp(Activity activity) {
DisplayMetrics metrics = new DisplayMetrics();
if (Build.VERSION.SDK_INT &= Build.VERSION_CODES.JELLY_BEAN) {
activity.getWindowManager().getDefaultDisplay().getRealMetrics(metrics);
// TODO this is not correct, but we don't really care pre-kitkat
activity.getWindowManager().getDefaultDisplay().getMetrics(metrics);
float widthDp = metrics.widthPixels / metrics.
float heightDp = metrics.heightPixels / metrics.
return Math.min(widthDp, heightDp);
* Should a navigation bar appear at the bottom of the screen in the current
* device configuration? A navigation bar may appear on the right side of
* the screen in certain configurations.
* @return True if navigation should appear at the bottom of the screen, False otherwise.
public boolean isNavigationAtBottom() {
return (mSmallestWidthDp &= 600 || mInPortrait);
* Get the height of the system status bar.
* @return The height of the status bar (in pixels).
public int getStatusBarHeight() {
return mStatusBarH
* Get the height of the action bar.
* @return The height of the action bar (in pixels).
public int getActionBarHeight() {
return mActionBarH
* Does this device have a system navigation bar?
* @return True if this device uses soft key navigation, False otherwise.
public boolean hasNavigtionBar() {
return mHasNavigationB
* Get the height of the system navigation bar.
* @return The height of the navigation bar (in pixels). If the device does not have
* soft navigation keys, this will always return 0.
public int getNavigationBarHeight() {
return mNavigationBarH
* Get the width of the system navigation bar when it is placed vertically on the screen.
* @return The width of the navigation bar (in pixels). If the device does not have
* soft navigation keys, this will always return 0.
public int getNavigationBarWidth() {
return mNavigationBarW
* Get the layout inset for any system UI that appears at the top of the screen.
* @param withActionBar True to include the height of the action bar, False otherwise.
* @return The layout inset (in pixels).
public int getPixelInsetTop(boolean withActionBar) {
return (mTranslucentStatusBar ? mStatusBarHeight : 0) + (withActionBar ? mActionBarHeight : 0);
* Get the layout inset for any system UI that appears at the bottom of the screen.
* @return The layout inset (in pixels).
public int getPixelInsetBottom() {
if (mTranslucentNavBar && isNavigationAtBottom()) {
return mNavigationBarH
* Get the layout inset for any system UI that appears at the right of the screen.
* @return The layout inset (in pixels).
public int getPixelInsetRight() {
if (mTranslucentNavBar && !isNavigationAtBottom()) {
return mNavigationBarW
用两张图告诉你,为什么你的 App 会卡顿? - Android - 掘金 Cover 有什么料? 从这篇文章中你能获得这些料: 知道setContentView()之后发生了什么? ... Android 获取 View 宽高的常用正确方式,避免为零 - 掘金 相信有很多...
用两张图告诉你,为什么你的 App 会卡顿? - Android - 掘金Cover 有什么料? 从这篇文章中你能获得这些料: 知道setContentView()之后发生了什么? ... Android 获取 View 宽高的常用正确方式,避免为零 - 掘金相信有很多朋友...
19版本以上Android可以自己实现沉浸式状态栏的设置 1、创建values-v21文件夹(为了匹配低版本)在style文件中设置: 设置了这两个属性状态栏就能设置为透明的。但是需要注意的是,这个设置不止可以改变状态栏,也能设置Navigation也就是底部的虚拟按键。如...
自从android4.4开始,android手机状态栏再也不是一成黑的时代,之前叫做变色龙,miui6发布会把他叫做沉浸式,之后大家就自然而然的接受了沉浸式这个名称,其实实际应该叫做Translucent Bar,即为透明状态栏。
沉浸式实现原理其实是使整个activit...
原创微信公众号郭霖 WeChat ID: guolin_blog 其实说到沉浸式状态栏这个名字我也是感到很无奈,真不知道这种叫法是谁先发起的。因为Android官方从来没有给出过沉浸式状态栏这样的命名,只有沉浸式模式(Immersive Mode)这种说法。而有些人在没有完...
21、五二零:最想像的情书送给你 一 月之夜,和你在桂花树下数星星 树很快就被吴刚砍下花落一地 但你却含香微笑,依偎在我身边 二 嫦娥再不广袖,她逆向着全天界 渲泄着“一无所有”的摇滚节奏 她感到了寒宫的热烈,我俩在云丛漫步 三 鹊桥上,不要问爱情的方向 那万年等一次的回眸...
忘却 已不能够 迷恋的爬虫 噬咬心脏 一下一下 释放毒药 攻城掠地 这是他们的饕餮 来吧 献祭的躯壳 已麻木 记忆 抽干
我一直不认可"爱情"。或许是没经历过刻骨铭心吧。
对于大家心心念念赞同的所谓"爱情",我把它定位为"新鲜感"。瞬间的萌动、眼光里怎么也藏不住的兴奋、喜悦和响往?是因为自己内心那一刻被启动了荷尔蒙开关而已。关乎感受,更关乎人性的原始渴望。
机缘巧合若做成...
30岁,感觉我的人生已经走完。 我的孩子,如果你出生我会尽心尽力去照顾你但不会溺爱你!在你很小的时候就要好好教育你,让你树立一个长大的目标。无论你喜欢什么,我都会支持你去做,让你多去接触这个世界,去尽早的认识这个世界! 我会在你小时候找出你的才华所在,而不是一味的只让你读书...
6月20日,中宣部 最髙法院召开&南昌会议&,推广江西省&法媒银&(法院 媒体 银行联手曝光老赖)的经验做法。}

我要回帖

更多关于 安卓隐藏虚拟按键 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信