⑴ android怎麼屏蔽三個虛擬鍵
使用方法:1、安裝xposed installer+Gravitybox(重力工具箱)
2、進入xposed installer,選擇模塊,勾選Gravitybox,重啟手機使設置生效
3、打開Gravitybox,分別進入顯示調整-擴展桌面模式-浸式虛擬按鍵,重啟手機
4、打開Gravitybox,分別選擇實體按鍵調整-返回鍵--長按動作-切換擴展桌面功能,退出,需要重啟的就重啟
5、接下來就是見證奇跡的時刻,從屏幕最下方向上滑動,就會調出虛擬鍵,如果不想隱藏虛擬鍵,就長按返回鍵,虛擬鍵正常顯示,玩游戲或是看電影什麼的需要隱藏虛擬鍵,就長按返回鍵,虛擬鍵就會自動隱藏!
⑵ Android 屏蔽下方虛擬按鍵
Android屏蔽手機虛擬按鍵
方法一
滑動屏幕可以顯示
```
protectedvoidhideBottomUIMenu() {
//隱藏虛擬按鍵,並且全屏
if(Build.VERSION.SDK_INT > 11&& Build.VERSION.SDK_INT < 19) { // lower api
View v = this.getWindow().getDecorView();
v.setSystemUiVisibility(View.GONE);
} elseif(Build.VERSION.SDK_INT >= 19) {
//for new api versions.
View decorView = getWindow().getDecorView();
intuiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
}
}
```
方法二
滑動也不能顯示
```
protectedvoidhideBottomUIMenu() {
//隱藏虛擬按鍵,並且全屏
if(Build.VERSION.SDK_INT > 11&& Build.VERSION.SDK_INT < 19) { // lower api
View v = this.getWindow().getDecorView();
v.setSystemUiVisibility(View.GONE);
} elseif(Build.VERSION.SDK_INT >= 19) {
Window _window = getWindow();
WindowManager.LayoutParams params = _window.getAttributes();
params.systemUiVisibility = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION|View.SYSTEM_UI_FLAG_IMMERSIVE;
_window.setAttributes(params);
}
}
```
⑶ 怎樣隱藏安卓機下方的三個虛擬鍵
Android 隱藏虛擬按鍵,可以使用谷歌官方提供的api里的SYSTEM_UI_FLAG_HIDE_NAVIGATION 這個標志位來完成,如下代碼:
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
public class HideTestActivity extends Activity implements OnClickListener{
View main ;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
main = getLayoutInflater().from(this).inflate(R.layout.main, null);
main.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);//設置虛擬鍵隱藏
main.setOnClickListener(this);//點擊事件
setContentView(main);
}
@Override
public void onClick(View v) {
int i = main.getSystemUiVisibility();
if (i == View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) {
main.setSystemUiVisibility(View.SYSTEM_UI_FLAG_VISIBLE);//設置通知欄和虛擬鍵盤隱藏
} else if (i == View.SYSTEM_UI_FLAG_VISIBLE){
main.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);//設置通知欄隱藏
} else if (i == View.SYSTEM_UI_FLAG_LOW_PROFILE) {
main.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);//設置虛擬鍵隱藏
}
}
}
⑷ android5.0鎬庝箞鍏抽棴涓嬫柟鉶氭嫙閿鐩
鍏抽棴瀹炰綋鎸夐敭鐨勬柟娉
絎涓姝ワ紱鍚屾牱浣跨敤RE鏂囦歡綆$悊鍣ㄤ慨鏀圭郴緇熺姸鎬佷負璇誨啓
絎浜屾ワ細榪涘叆system/usr
/keylayout鐩褰曚笅
絎涓夋ワ細閫夋嫨cyttsp-button.kl錛堥暱鎸夐夋嫨浠ユ枃鏈鏂瑰紡緙栬緫錛
絎鍥涙ワ細鎵懼埌濡備笅淇℃伅
key 102 HOME VIRTUAL
key 139 MENU VIRTUAL