修改游戏的new图标展示,网页中英文检测

This commit is contained in:
18401019693 2023-10-07 11:21:03 +08:00
parent cf169e9a4e
commit b2ee091c03
8 changed files with 30 additions and 23 deletions

View File

@ -174,9 +174,9 @@ public class SudGameListPopup extends BottomPopupView {
@Override @Override
public void onError(String error) { public void onError(String error) {
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) { if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
ToastUtil.show("房间不存在"); ToastUtil.show("当前没有可加入的房间");
} else { } else {
ToastUtil.show("The room does not exist"); ToastUtil.show("There are currently no rooms to join");
} }
} }
}); });

View File

@ -123,8 +123,9 @@
android:maxEms="5" android:maxEms="5"
android:paddingStart="12dp" android:paddingStart="12dp"
android:paddingTop="9dp" android:paddingTop="9dp"
android:singleLine="true"
android:paddingBottom="9dp" android:paddingBottom="9dp"
android:digits="123456789" android:digits="1234567890"
android:textColor="@color/white" android:textColor="@color/white"
android:textColorHint="#FFFFFF" android:textColorHint="#FFFFFF"
android:textSize="10sp" /> android:textSize="10sp" />

View File

@ -117,11 +117,12 @@
android:id="@+id/game_sill" android:id="@+id/game_sill"
android:layout_width="175dp" android:layout_width="175dp"
android:layout_height="32dp" android:layout_height="32dp"
android:digits="123456789" android:digits="1234567890"
android:background="@drawable/bg_live_sud_list_input_home" android:background="@drawable/bg_live_sud_list_input_home"
android:hint="@string/interactive_game_create_gold_bean_quantity" android:hint="@string/interactive_game_create_gold_bean_quantity"
android:inputType="numberDecimal" android:inputType="numberDecimal"
android:paddingStart="12dp" android:paddingStart="12dp"
android:singleLine="true"
android:ellipsize="end" android:ellipsize="end"
android:maxEms="5" android:maxEms="5"
android:paddingTop="9dp" android:paddingTop="9dp"

View File

@ -81,12 +81,12 @@
<TextView <TextView
android:id="@+id/game_title" android:id="@+id/game_title"
android:layout_width="35dp" android:layout_width="40dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true" android:singleLine="true"
android:text="@string/interactive_game_room_game_all" android:text="@string/interactive_game_create_unlimited"
android:textColor="#fff" android:textColor="#fff"
android:textSize="11sp" /> android:textSize="11sp" />

View File

@ -1211,7 +1211,7 @@ Limited ride And limited avatar frame</string>
<string name="red_packet_info_residue_none">None</string> <string name="red_packet_info_residue_none">None</string>
<string name="red_packet_info_residue_back">Return to account</string> <string name="red_packet_info_residue_back">Return to account</string>
<string name="red_packet_user_tips2">Popularity Red packet</string> <string name="red_packet_user_tips2">Popularity Red packet</string>
<string name="main_tabs_red_packet">Game</string> <string name="main_tabs_red_packet">Game Zone</string>
<string name="save_popular_red_packets">Popular red packets</string> <string name="save_popular_red_packets">Popular red packets</string>
<string name="amount">amount</string> <string name="amount">amount</string>
<string name="drill">Diamonds</string> <string name="drill">Diamonds</string>
@ -1323,7 +1323,7 @@ Limited ride And limited avatar frame</string>
<string name="interactive_game_room_game">Game:</string> <string name="interactive_game_room_game">Game:</string>
<string name="interactive_game_room_game_all">All</string> <string name="interactive_game_room_game_all">All</string>
<string name="interactive_game_room_sill">Threshold:</string> <string name="interactive_game_room_sill">Threshold:</string>
<string name="interactive_game_room_house_owner">owner:</string> <string name="interactive_game_room_house_owner">Owner:</string>
<string name="interactive_game_room_random_start">Random start</string> <string name="interactive_game_room_random_start">Random start</string>
<string name="interactive_game_room_all">All Game</string> <string name="interactive_game_room_all">All Game</string>
<string name="interactive_game_create_room">Create a room</string> <string name="interactive_game_create_room">Create a room</string>
@ -1334,11 +1334,11 @@ Limited ride And limited avatar frame</string>
<string name="interactive_game_create_game_sill">Game threshold:</string> <string name="interactive_game_create_game_sill">Game threshold:</string>
<string name="interactive_game_create_game_select">Please select a game</string> <string name="interactive_game_create_game_select">Please select a game</string>
<string name="interactive_game_create_gold_bean_quantity">Please enter the number of golden beans</string> <string name="interactive_game_create_gold_bean_quantity">Please enter the number of golden beans</string>
<string name="interactive_game_create_unlimited">unlimited</string> <string name="interactive_game_create_unlimited">No limit</string>
<string name="interactive_game_create_0_1">0K-1KGolden Bean</string> <string name="interactive_game_create_0_1">0K-1K beans</string>
<string name="interactive_game_create_1_2">1K-2KGolden Bean</string> <string name="interactive_game_create_1_2">1K-2K beans</string>
<string name="interactive_game_create_2_5">2K-5KGolden Bean</string> <string name="interactive_game_create_2_5">2K-5K beans</string>
<string name="interactive_game_create_5">5 K or more gold beans</string> <string name="interactive_game_create_5">Above 5K beans</string>
<string name="interactive_game_player">user</string> <string name="interactive_game_player">user</string>
<string name="interactive_game_player_we_are">In a team of %s people, let\'s play together~</string> <string name="interactive_game_player_we_are">In a team of %s people, let\'s play together~</string>
<string name="interactive_game_player_we_are_2">%s people online</string> <string name="interactive_game_player_we_are_2">%s people online</string>

View File

@ -1212,7 +1212,7 @@ Limited ride And limited avatar frame</string>
<string name="red_packet_info_residue_none">None</string> <string name="red_packet_info_residue_none">None</string>
<string name="red_packet_info_residue_back">Return to account</string> <string name="red_packet_info_residue_back">Return to account</string>
<string name="red_packet_user_tips2">Popularity Red packet</string> <string name="red_packet_user_tips2">Popularity Red packet</string>
<string name="main_tabs_red_packet">Game</string> <string name="main_tabs_red_packet">Game Zone</string>
<string name="save_popular_red_packets">Popular red packets</string> <string name="save_popular_red_packets">Popular red packets</string>
<string name="amount">amount</string> <string name="amount">amount</string>
<string name="drill">Diamonds</string> <string name="drill">Diamonds</string>
@ -1325,7 +1325,7 @@ Limited ride And limited avatar frame</string>
<string name="interactive_game_room_game">Game:</string> <string name="interactive_game_room_game">Game:</string>
<string name="interactive_game_room_game_all">All</string> <string name="interactive_game_room_game_all">All</string>
<string name="interactive_game_room_sill">Threshold:</string> <string name="interactive_game_room_sill">Threshold:</string>
<string name="interactive_game_room_house_owner">owner:</string> <string name="interactive_game_room_house_owner">Owner:</string>
<string name="interactive_game_room_random_start">Random start</string> <string name="interactive_game_room_random_start">Random start</string>
<string name="interactive_game_room_all">All Game</string> <string name="interactive_game_room_all">All Game</string>
<string name="interactive_game_create_room">Create a room</string> <string name="interactive_game_create_room">Create a room</string>
@ -1336,11 +1336,11 @@ Limited ride And limited avatar frame</string>
<string name="interactive_game_create_game_sill">Game threshold:</string> <string name="interactive_game_create_game_sill">Game threshold:</string>
<string name="interactive_game_create_game_select">Please select a game</string> <string name="interactive_game_create_game_select">Please select a game</string>
<string name="interactive_game_create_gold_bean_quantity">Please enter the number of golden beans</string> <string name="interactive_game_create_gold_bean_quantity">Please enter the number of golden beans</string>
<string name="interactive_game_create_unlimited">unlimited</string> <string name="interactive_game_create_unlimited">No limit</string>
<string name="interactive_game_create_0_1">0K-1KGolden Bean</string> <string name="interactive_game_create_0_1">0K-1K beans</string>
<string name="interactive_game_create_1_2">1K-2KGolden Bean</string> <string name="interactive_game_create_1_2">1K-2K beans</string>
<string name="interactive_game_create_2_5">2K-5KGolden Bean</string> <string name="interactive_game_create_2_5">2K-5K beans</string>
<string name="interactive_game_create_5">5 K or more gold beans</string> <string name="interactive_game_create_5">Above 5K beans</string>
<string name="interactive_game_player">user</string> <string name="interactive_game_player">user</string>
<string name="interactive_game_player_we_are">In a team of %s people, let\'s play together~</string> <string name="interactive_game_player_we_are">In a team of %s people, let\'s play together~</string>
<string name="interactive_game_player_we_are_2">%s people online</string> <string name="interactive_game_player_we_are_2">%s people online</string>

View File

@ -38,6 +38,7 @@ import com.yunbao.common.http.live.LiveNetManager;
import com.yunbao.common.interfaces.OnItemClickListener; import com.yunbao.common.interfaces.OnItemClickListener;
import com.yunbao.common.manager.IMLoginManager; import com.yunbao.common.manager.IMLoginManager;
import com.yunbao.common.utils.Bus; import com.yunbao.common.utils.Bus;
import com.yunbao.common.utils.ToastUtil;
import com.yunbao.common.views.weight.ViewClicksAntiShake; import com.yunbao.common.views.weight.ViewClicksAntiShake;
import com.yunbao.main.R; import com.yunbao.main.R;
@ -159,7 +160,11 @@ public class MainHomeGameViewHolder extends AbsMainHomeChildViewHolder implement
@Override @Override
public void onError(String error) { public void onError(String error) {
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
ToastUtil.show("当前没有可加入的房间");
} else {
ToastUtil.show("There are currently no rooms to join");
}
} }
}); });
// List<SudRoomListModel> sudRoomListModels = sudGameListAdapter.getList(); // List<SudRoomListModel> sudRoomListModels = sudGameListAdapter.getList();

View File

@ -75,12 +75,12 @@
<TextView <TextView
android:id="@+id/game_title" android:id="@+id/game_title"
android:layout_width="35dp" android:layout_width="40dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true" android:singleLine="true"
android:text="@string/interactive_game_room_game_all" android:text="@string/interactive_game_create_unlimited"
android:textColor="#000" android:textColor="#000"
android:textSize="11sp" /> android:textSize="11sp" />