diff --git a/common/src/main/java/com/yunbao/common/utils/ToastUtils.java b/common/src/main/java/com/yunbao/common/utils/ToastUtils.java index 12d7412df..541f07392 100644 --- a/common/src/main/java/com/yunbao/common/utils/ToastUtils.java +++ b/common/src/main/java/com/yunbao/common/utils/ToastUtils.java @@ -1,6 +1,7 @@ package com.yunbao.common.utils; import android.content.Context; +import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.widget.TextView; @@ -21,10 +22,11 @@ public class ToastUtils { toast = new Toast(context); View view = LayoutInflater.from(context).inflate(R.layout.toast_utils, null, false); toast.setView(view); + toast.setGravity(Gravity.CENTER, 0, 0); } } public void setGravity(int gravity){ - toast.setGravity(gravity, 0, 0); + toast.setGravity(Gravity.CENTER, 0, 0); } public void setText(String tips){ tipsText.setText(tips); diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml index dd202c7ad..6d7ef612e 100644 --- a/live/src/main/res/layout/view_live_room.xml +++ b/live/src/main/res/layout/view_live_room.xml @@ -2067,72 +2067,7 @@ android:layout_marginRight="19dp" android:orientation="vertical"> - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + () { @Override