From 57552fc76ee1bc392a09dd6e360fa493634ed7ab Mon Sep 17 00:00:00 2001 From: yangyakun Date: Mon, 4 Sep 2023 18:04:38 +0800 Subject: [PATCH] =?UTF-8?q?[6.0.0]=20[charter]=20[=E5=90=90=E5=8F=B8?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=E5=8F=98=E6=9B=B4]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogo/och/common/module/wigets/toast/ToastCharterUtils.kt | 2 +- .../src/main/res/layout/charter_p_view_toast.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/toast/ToastCharterUtils.kt b/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/toast/ToastCharterUtils.kt index 8c903b4b0e..932b1632f7 100644 --- a/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/toast/ToastCharterUtils.kt +++ b/OCH/mogo-och-common-module/src/main/java/com/mogo/och/common/module/wigets/toast/ToastCharterUtils.kt @@ -13,7 +13,7 @@ import me.jessyan.autosize.utils.AutoSizeUtils object ToastCharterUtils { const val TAG = "ToastCharterUtils" - private val toastUtils = ToastUtils().setGravity(Gravity.CENTER, 0, 0) + private val toastUtils = ToastUtils().setGravity(Gravity.CENTER or Gravity.FILL_HORIZONTAL, 0, 0) @JvmStatic fun showToastLong(toastText: String){ diff --git a/OCH/mogo-och-common-module/src/main/res/layout/charter_p_view_toast.xml b/OCH/mogo-och-common-module/src/main/res/layout/charter_p_view_toast.xml index c917038edb..39f96b1362 100644 --- a/OCH/mogo-och-common-module/src/main/res/layout/charter_p_view_toast.xml +++ b/OCH/mogo-och-common-module/src/main/res/layout/charter_p_view_toast.xml @@ -4,7 +4,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" - android:layout_width="wrap_content" + android:gravity="center" + android:layout_width="match_parent" android:layout_height="wrap_content">