我已经为我的 Android 设备构建了一个 chromium ContentShell,如下所述:
https://code.google.com/p/chromium/wiki/AndroidBuildInstructions https://code.google.com/p/chromium/wiki/AndroidBuildInstructions
我现在想在全屏模式下使用这个 ContentShell。我尝试添加标记信息亭,如下所述:
http://www.chromium.org/developers/how-tos/run-chromium-with-flags http://www.chromium.org/developers/how-tos/run-chromium-with-flags
但它不起作用。有没有一种方法可以在带有 chromium 的 android 上使用 kiosk 模式,或者您会推荐另一种方法来实现我想要的功能吗? (全屏显示网站,没有任何地址栏/菜单,也没有系统用户界面栏)
为了摆脱系统 UI 栏,我这样做了:
service call activity 42 s16 com.android.systemui
正如这里所解释的:https://stackoverflow.com/a/19373504/3640770 https://stackoverflow.com/a/19373504/3640770
然后我编辑了 shell_view.xml 并将其添加到负责工具栏的 LinearLayout 中:
android:visibility="gone"
正如这里所解释的:https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/6sSGXfPOhqg https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/6sSGXfPOhqg
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)