From db8dc2a78178dda3799b5fd81d268ceabb24eb7e Mon Sep 17 00:00:00 2001
From: 18142669586 <1669783059@qq.com>
Date: Thu, 13 Apr 2023 15:57:11 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9E=E9=BA=A6=E6=A0=B7?=
=?UTF-8?q?=E8=AF=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../com/yunbao/common/utils/ToastUtils.java | 4 +-
live/src/main/res/layout/view_live_room.xml | 132 +++++++++---------
.../yunbao/main/activity/MainActivity.java | 1 -
3 files changed, 70 insertions(+), 67 deletions(-)
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