【发布时间】:2025-12-08 02:10:02
【问题描述】:
我在片段中创建了一个 webview,但是当我尝试按下后退按钮时,它正在杀死应用程序而不是返回。我想要的是当我按下返回按钮时返回,如果我已经在主页上,返回按钮应该会杀死应用程序。
我已尝试使用给定链接中的所有解决方案。
How to add "Go Back" function in WebView inside Fragment?
请帮忙。
【问题讨论】:
-
什么不适用于this 方法?
标签: android android-studio android-fragments android-studio-2.2 android-studio-2.0