【发布时间】:2019-06-09 17:01:26
【问题描述】:
我已经按照https://developers.google.com/web/updates/2019/02/using-twa 中的描述构建了一个 TWA
我想删除底部导航栏。我读过它只能通过 IMMERSIVE 模式以编程方式完成:https://developer.android.com/training/system-ui/immersive.html
所以我需要添加一个与活动“android.support.customtabs.trusted.LauncherActivity”关联的类,并在 onCreate() 中添加 hideSystemUI() 代码。
怎么做?
这是清单:
....
<activity
android:name="android.support.customtabs.trusted.LauncherActivity"
android:theme="@style/Theme.LauncherActivity"
android:label="@string/app_name">
....
如何为此活动编写沉浸式模式?
【问题讨论】:
-
目前有一个开放的错误来实现这个功能:bugs.chromium.org/p/chromium/issues/detail?id=965329
标签: progressive-web-apps trusted-web-activity