简体   繁体   English

在Chrome上的kiosk模式或全屏铬

[英]kiosk mode or fullscreen in chromium on android

I have built a chromium ContentShell for my android device as explained here: 我为我的Android设备构建了一个chrome ContentShell,如下所述:

https://code.google.com/p/chromium/wiki/AndroidBuildInstructions https://code.google.com/p/chromium/wiki/AndroidBuildInstructions

I now want to use this ContentShell in fullscreen mode. 我现在想在全屏模式下使用此ContentShell。 I tried to add the flag kiosk as explained here: 我尝试添加标志亭,如下所述:

http://www.chromium.org/developers/how-tos/run-chromium-with-flags http://www.chromium.org/developers/how-tos/run-chromium-with-flags

But it is not working. 但它没有用。 Is there a way to use kiosk mode on android with chromium or would you recommend another way to achieve what i want to have? 有没有办法在机器人上使用kiosk模式与铬或你会建议另一种方式来实现我想要的东西? (display of website in fullscreen without any address bar/menu and also no system ui bars) (全屏显示网站,没有任何地址栏/菜单,也没有系统ui栏)

To get rid of the system UI bars I did this: 为了摆脱系统UI栏我做了这个:

service call activity 42 s16 com.android.systemui

As explained here: https://stackoverflow.com/a/19373504/3640770 如下所述: https//stackoverflow.com/a/19373504/3640770

Then I edited shell_view.xml and added this to the LinearLayout responsible for the toolbar: 然后我编辑了shell_view.xml并将其添加到负责工具栏的LinearLayout:

android:visibility="gone"

As explained here: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/6sSGXfPOhqg 如下所述: https//groups.google.com/a/chromium.org/forum/#!topic/ chromium-dev/ 6sSGXfPOhqg

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM