[charter]
[吐司长度变更]
This commit is contained in:
yangyakun
2023-09-04 18:04:38 +08:00
committed by zhongchao
parent b88f2533d9
commit 57552fc76e
2 changed files with 3 additions and 2 deletions

View File

@@ -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){

View File

@@ -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">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_taost_texit"