[6.0.0]
[charter] [吐司长度变更]
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user