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">