diff --git a/common/src/main/res/drawable/background_live_sud_hint.png b/common/src/main/res/drawable/background_live_sud_hint.png
new file mode 100644
index 000000000..e98cf1c48
Binary files /dev/null and b/common/src/main/res/drawable/background_live_sud_hint.png differ
diff --git a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java
index 569ca21f7..3fe10691e 100644
--- a/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java
+++ b/live/src/main/java/com/yunbao/live/views/LiveRoomViewHolder.java
@@ -636,26 +636,28 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
}
private TextView sud_text_name;
+ private LinearLayout sud_layout_name;
private Handler sudNameHandler = new Handler();
private Runnable sudNameRunnable = new Runnable() {
@Override
public void run() {
- if (sud_text_name != null) {
- sud_text_name.setVisibility(View.GONE);
+ if (sud_layout_name != null) {
+ sud_layout_name.setVisibility(View.GONE);
}
}
};
public void setSudName(String sudName) {
- sud_text_name = (TextView) findViewById(com.yunbao.common.R.id.sud_text_name);
+ sud_text_name = (TextView) findViewById(R.id.sud_text_name);
+ sud_layout_name = (LinearLayout) findViewById(R.id.sud_layout_name);
sud_text_name.setText(WordUtil.isNewZh() ?
String.format("主播创建了【%s】房间,快来与主播同玩~", sudName) :
String.format("The anchor has created a 【%s】 room. Come and play with the anchor~", sudName));
- sud_text_name.setVisibility(View.VISIBLE);
- ViewClicksAntiShake.clicksAntiShake(sud_text_name, new ViewClicksAntiShake.ViewClicksCallBack() {
+ sud_layout_name.setVisibility(View.VISIBLE);
+ ViewClicksAntiShake.clicksAntiShake(sud_layout_name, new ViewClicksAntiShake.ViewClicksCallBack() {
@Override
public void onViewClicks() {
- sud_text_name.setVisibility(View.GONE);
+ sud_layout_name.setVisibility(View.GONE);
}
});
sudNameHandler.removeCallbacks(sudNameRunnable);
diff --git a/live/src/main/res/layout/view_live_room.xml b/live/src/main/res/layout/view_live_room.xml
index 2995e1eb0..b7080669b 100644
--- a/live/src/main/res/layout/view_live_room.xml
+++ b/live/src/main/res/layout/view_live_room.xml
@@ -2478,21 +2478,31 @@
android:layout_marginTop="80dp"
app:autoPlay="true" />
-
+ android:layout_marginEnd="42dp"
+ android:paddingStart="21dp"
+ android:visibility="gone"
+ android:paddingEnd="15dp">
+
+
+
+