修改中英文
This commit is contained in:
@@ -33,6 +33,29 @@ public class EnterRoomNewModel extends BaseModel {
|
||||
@SerializedName("wishListProgress")
|
||||
private WishModel wishListProgress;
|
||||
|
||||
@SerializedName("sud_game_room_status")
|
||||
private String sudGameRoomStatus;
|
||||
@SerializedName("sud_game_room_name")
|
||||
private String sudGameRoomName;
|
||||
|
||||
public String getSudGameRoomName() {
|
||||
return sudGameRoomName;
|
||||
}
|
||||
|
||||
public EnterRoomNewModel setSudGameRoomName(String sudGameRoomName) {
|
||||
this.sudGameRoomName = sudGameRoomName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getSudGameRoomStatus() {
|
||||
return sudGameRoomStatus;
|
||||
}
|
||||
|
||||
public EnterRoomNewModel setSudGameRoomStatus(String sudGameRoomStatus) {
|
||||
this.sudGameRoomStatus = sudGameRoomStatus;
|
||||
return this;
|
||||
}
|
||||
|
||||
public WishModel getWishListProgress() {
|
||||
return wishListProgress;
|
||||
}
|
||||
|
||||
36
common/src/main/java/com/yunbao/common/views/SudHint.java
Normal file
36
common/src/main/java/com/yunbao/common/views/SudHint.java
Normal file
@@ -0,0 +1,36 @@
|
||||
package com.yunbao.common.views;
|
||||
|
||||
import android.content.Context;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.lxj.xpopup.core.BottomPopupView;
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
|
||||
public class SudHint extends BottomPopupView {
|
||||
private String sudGameRoomName;
|
||||
private TextView sud_text_name;
|
||||
|
||||
public SudHint(@NonNull Context context, String sudGameRoomName) {
|
||||
super(context);
|
||||
this.sudGameRoomName = sudGameRoomName;
|
||||
}
|
||||
|
||||
// 返回自定义弹窗的布局
|
||||
@Override
|
||||
protected int getImplLayoutId() {
|
||||
return R.layout.dialog_sud_hint;
|
||||
}
|
||||
|
||||
// 执行初始化操作,比如:findView,设置点击,或者任何你弹窗内的业务逻辑
|
||||
@Override
|
||||
protected void onCreate() {
|
||||
super.onCreate();
|
||||
sud_text_name = findViewById(R.id.sud_text_name);
|
||||
sud_text_name.setText(WordUtil.isNewZh()?
|
||||
String.format("主播创建了【%s】房间,快来与主播同玩~",sudGameRoomName):
|
||||
String.format("The anchor has created a 【%s】 room. Come and play with the anchor~",sudGameRoomName));
|
||||
}
|
||||
}
|
||||
5
common/src/main/res/drawable/bg_live_sud_hint.xml
Normal file
5
common/src/main/res/drawable/bg_live_sud_hint.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<corners android:radius="24dp"/>
|
||||
<solid android:color="#99000000" />
|
||||
</shape>
|
||||
28
common/src/main/res/layout/dialog_sud_hint.xml
Normal file
28
common/src/main/res/layout/dialog_sud_hint.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:orientation="vertical"
|
||||
tools:ignore="MissingDefaultResource">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/sud_text_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="21dp"
|
||||
android:layout_marginEnd="21dp"
|
||||
android:layout_marginBottom="24dp"
|
||||
android:background="@drawable/bg_live_sud_hint"
|
||||
android:paddingStart="22dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingEnd="22dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:text="主播創建了【游戲名】房間,快來與主播同玩~"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="14sp">
|
||||
|
||||
</TextView>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -377,7 +377,7 @@
|
||||
<string name="live_follow_anchor">Focus on the anchor</string>
|
||||
<string name="live_report">Are you sure to report?</string>
|
||||
<string name="live_link_mic_2">Interaction</string>
|
||||
<string name="live_link_mic_3">End Lian Mai</string>
|
||||
<string name="live_link_mic_3">Quit even wheat</string>
|
||||
<string name="live_link_mic_4">Allowed even wheat</string>
|
||||
<string name="live_link_mic_5">Ban Lian Mai</string>
|
||||
<string name="link_mic_wait">Initiate a link request</string>
|
||||
|
||||
@@ -377,7 +377,7 @@
|
||||
<string name="live_follow_anchor">Focus on the anchor</string>
|
||||
<string name="live_report">Are you sure to report?</string>
|
||||
<string name="live_link_mic_2">Interaction</string>
|
||||
<string name="live_link_mic_3">End Lian Mai</string>
|
||||
<string name="live_link_mic_3">Quit even wheat</string>
|
||||
<string name="live_link_mic_4">Allowed even wheat</string>
|
||||
<string name="live_link_mic_5">Ban Lian Mai</string>
|
||||
<string name="link_mic_wait">Initiate a link request</string>
|
||||
|
||||
Reference in New Issue
Block a user