"chrome 自定义标签页"的"关闭"按钮会关闭整个网页视图本身。但是,我希望它覆盖其行为以作为硬件后退按钮行为工作,以便用户可以返回Web的上一页而不是关闭Web视图。
我读了很多帖子和博客,但我找不到任何解决方案。我已经找到了更改关闭按钮图标的解决方案。
就我而言,我的应用程序除了打开Chrome自定义标签外什么都不做,所以我能够做到这一点:
// This is called on boot, and when the Chrome Custom Tab's X button in the top left is clicked.
protected void onResume() {
super.onResume();
tryLaunch();
}
tryLaunch
在哪里推出Chrome
目前这是不可能的。