Launching Android Browser in Full Screen Mode from App

◇◆丶佛笑我妖孽 提交于 2020-07-19 10:12:53

问题


Is there a way to launch the android browser from an app in Full Screen Mode such that the address bar is not visible? Any examples or guidance would be much appreciated.


回答1:


Depending on your requirements, a WebView might be sufficient. Tutorial can be found here.




回答2:


You can simply set full screen mode by

First approach:

just add to your Manifest.xml

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

Second approach:

requestWindowFeature(Window.FEATURE_NO_TITLE)

Third approach:

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN)


来源:https://stackoverflow.com/questions/10988564/launching-android-browser-in-full-screen-mode-from-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!