Android平板怎么设置全屏,就是隐藏返回、主页等虚拟按键?
我有个应用得需要全屏,手机全屏很容易,但是平板却没那么容易。只能getWindow().getDecorView().setSystemUiVisibility(10); //平板全屏,暂时使得系统UI不可见,但是menu菜单等会激活UI。更苦逼的是,getWindow().getDecorView().setSystemUiVisibility(10);台电这行代码不能用,不能影藏UI,求指教? Android 全屏 UI --------------------编程问答-------------------- 虚拟按键的那个区域不属于应用的。应用无法屏蔽掉那个部分的 --------------------编程问答-------------------- 动态的隐藏通过执行shell命令: busybox killall com.android.systemui ---每隔2.5秒执行一次即可
你可以通过PC cmd终端测试一下,
adb shell 进入系统之后,执行如下命令
busybox killall com.android.systemui --------------------编程问答-------------------- 我弄了不行,你有试过,可行吗? --------------------编程问答-------------------- 而且你这样是不是得获得Root权限? --------------------编程问答--------------------
我在昂达上面试过,可以,台电和昂达有用同一款的处理器,所以也是可以的
如果觉得麻烦,你可以在网上搜一下GMD的hidbar软件试一下 --------------------编程问答-------------------- 我搜了,但是必须得Root机器才有用 --------------------编程问答--------------------
而且你这样是不是得获得Root权限?
而且你这样是不是得获得Root权限?
D:\android-sdks\platform-tools>adb devices
List of devices attached
c1607481762727f device
D:\android-sdks\platform-tools>adb shell
shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ c1607481762727f
c1607481762727f
/system/bin/sh: c1607481762727f: not found
127|shell@android:/ $ c1607481762727f killall com.android.systemui
c1607481762727f killall com.android.systemui
/system/bin/sh: c1607481762727f: not found
127|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ kill com.android.systemui
kill com.android.systemui
/system/bin/sh: kill: com.android.systemui: arguments must be jobs or process ID
s
1|shell@android:/ $ kill com.android.systemui
kill com.android.systemui
/system/bin/sh: kill: com.android.systemui: arguments must be jobs or process ID
s
1|shell@android:/ $ kill com.android.systemui
kill com.android.systemui
/system/bin/sh: kill: com.android.systemui: arguments must be jobs or process ID
s
1|shell@android:/ $ kill com.android.systemui
kill com.android.systemui
/system/bin/sh: kill: com.android.systemui: arguments must be jobs or process ID
s
1|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ adb devices
adb devices
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
List of devices attached
shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ busybox killall com.android.systemui^Z^X^C
D:\android-sdks\platform-tools>^Z
D:\android-sdks\platform-tools>
D:\android-sdks\platform-tools>busybox killall com.android.systemui
'busybox' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
D:\android-sdks\platform-tools>adb shell
shell@android:/ $ kill com.android.systemui
kill com.android.systemui
/system/bin/sh: kill: com.android.systemui: arguments must be jobs or process ID
s
1|shell@android:/ $ kill com.android.systemui
kill com.android.systemui
/system/bin/sh: kill: com.android.systemui: arguments must be jobs or process ID
s
1|shell@android:/ $ kill com.android.systemui
kill com.android.systemui
/system/bin/sh: kill: com.android.systemui: arguments must be jobs or process ID
s
1|shell@android:/ $ kill com.android.systemui
kill com.android.systemui
/system/bin/sh: kill: com.android.systemui: arguments must be jobs or process ID
s
1|shell@android:/ $ busybox killall com.android.systemui
busybox killall com.android.systemui
/system/bin/sh: busybox: not found
127|shell@android:/ $ busybox killall com.android.systemui
这是我尝试的结果,你看看? --------------------编程问答--------------------
而且你这样是不是得获得Root权限?
楼主和answer都是精英,值得学习。
补充:移动开发 , Android