Android知识点(隐藏底部虚拟按键)

大鹏一日同风起,扶摇直上九万里。这篇文章主要讲述Android知识点:隐藏底部虚拟按键相关的知识,希望能为你提供帮助。

/** * 隐藏底部虚拟按键,且全屏 */ private void hideBottomMenu() { //隐藏虚拟按键,并且全屏 if (Build.VERSION.SDK_INT > 11 & & Build.VERSION.SDK_INT < 19) { // lower api View v = this.getWindow().getDecorView(); v.setSystemUiVisibility(View.GONE); } else if (Build.VERSION.SDK_INT > = 19) { //for new api versions. View decorView = getWindow().getDecorView(); int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_FULLSCREEN; decorView.setSystemUiVisibility(uiOptions); } }

【Android知识点(隐藏底部虚拟按键)】 

    推荐阅读