From d181e0e74309818bb9c4072289fbfea4e02647fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Thu, 12 Sep 2024 18:32:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=92=AD=E5=8D=8F=E8=AE=AE=E5=9B=9E?= =?UTF-8?q?=E9=80=80=E9=97=AE=E9=A2=98=EF=BC=8C1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/common/activity/WebViewActivity.java | 9 +++++++++ common/src/main/res/layout/activity_webview.xml | 1 - main/src/main/res/layout/view_new_main_me.xml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java b/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java index 946591739..0b56ea832 100644 --- a/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java +++ b/common/src/main/java/com/yunbao/common/activity/WebViewActivity.java @@ -94,6 +94,15 @@ public class WebViewActivity extends AbsActivity { // getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR | View.SYSTEM_UI_FLAG_LAYOUT_STABLE); } + @Override + public void backClick(View v) { + if (mWebView.canGoBack()){ + mWebView.goBack(); + }else { + finish(); + } + } + @Override protected void main() { String url = getIntent().getStringExtra(Constants.URL); diff --git a/common/src/main/res/layout/activity_webview.xml b/common/src/main/res/layout/activity_webview.xml index e22ab8281..38d1e572f 100644 --- a/common/src/main/res/layout/activity_webview.xml +++ b/common/src/main/res/layout/activity_webview.xml @@ -16,7 +16,6 @@ android:id="@+id/ft_title" android:layout_width="match_parent" android:layout_height="72dp" - android:background="@color/white" android:paddingTop="24dp" tools:visibility="gone"> diff --git a/main/src/main/res/layout/view_new_main_me.xml b/main/src/main/res/layout/view_new_main_me.xml index aca5c0dcd..75399c3aa 100644 --- a/main/src/main/res/layout/view_new_main_me.xml +++ b/main/src/main/res/layout/view_new_main_me.xml @@ -453,7 +453,7 @@