修改游戏问题
This commit is contained in:
parent
45566001a7
commit
260b615d2b
@ -272,7 +272,21 @@ public class SudGameListPopup extends BottomPopupView {
|
|||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onSudGameListEvent(SudGameListEvent event) {
|
public void onSudGameListEvent(SudGameListEvent event) {
|
||||||
interactionID = event.getInteractionID();
|
interactionID = event.getInteractionID();
|
||||||
gameTitle.setText(event.getTitle().substring(0, 2));
|
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||||
|
gameTitle.setText(event.getTitle().substring(0, 2));
|
||||||
|
} else {
|
||||||
|
if (event.getTitle().contains("All")) {
|
||||||
|
gameTitle.setText("All");
|
||||||
|
} else {
|
||||||
|
if ((event.getTitle().length() > 6)) {
|
||||||
|
gameTitle.setText(event.getTitle().substring(0, 5));
|
||||||
|
} else {
|
||||||
|
gameTitle.setText(event.getTitle());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
id = event.getId();
|
id = event.getId();
|
||||||
ObjectAnimator animator = ObjectAnimator.ofFloat(roomGameArrow, "rotation", 90f, 0f);
|
ObjectAnimator animator = ObjectAnimator.ofFloat(roomGameArrow, "rotation", 90f, 0f);
|
||||||
animator.setDuration(500);
|
animator.setDuration(500);
|
||||||
|
@ -1325,7 +1325,7 @@ Limited ride And limited avatar frame</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">Game All</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>
|
||||||
<string name="interactive_game_create_room_name">"Room Name: "</string>
|
<string name="interactive_game_create_room_name">"Room Name: "</string>
|
||||||
<string name="interactive_game_create_room_number">Room ID:</string>
|
<string name="interactive_game_create_room_number">Room ID:</string>
|
||||||
|
@ -1327,7 +1327,7 @@ Limited ride And limited avatar frame</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">Game All</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>
|
||||||
<string name="interactive_game_create_room_name">"Room Name: "</string>
|
<string name="interactive_game_create_room_name">"Room Name: "</string>
|
||||||
<string name="interactive_game_create_room_number">Room ID:</string>
|
<string name="interactive_game_create_room_number">Room ID:</string>
|
||||||
|
@ -36,6 +36,7 @@ import com.yunbao.common.http.LiveHttpUtil;
|
|||||||
import com.yunbao.common.http.base.HttpCallback;
|
import com.yunbao.common.http.base.HttpCallback;
|
||||||
import com.yunbao.common.http.live.LiveNetManager;
|
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.utils.Bus;
|
import com.yunbao.common.utils.Bus;
|
||||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||||
import com.yunbao.main.R;
|
import com.yunbao.main.R;
|
||||||
@ -45,6 +46,7 @@ import org.greenrobot.eventbus.ThreadMode;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by cxf on 2018/9/22.
|
* Created by cxf on 2018/9/22.
|
||||||
@ -291,7 +293,21 @@ public class MainHomeGameViewHolder extends AbsMainHomeChildViewHolder implement
|
|||||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||||
public void onSudGameListEvent(SudGameListEvent event) {
|
public void onSudGameListEvent(SudGameListEvent event) {
|
||||||
interactionID = event.getInteractionID();
|
interactionID = event.getInteractionID();
|
||||||
gameTitle.setText(event.getTitle().substring(0, 2));
|
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||||
|
gameTitle.setText(event.getTitle().substring(0, 2));
|
||||||
|
} else {
|
||||||
|
if (event.getTitle().contains("All")) {
|
||||||
|
gameTitle.setText("All");
|
||||||
|
} else {
|
||||||
|
if ((event.getTitle().length() > 6)) {
|
||||||
|
gameTitle.setText(event.getTitle().substring(0, 5));
|
||||||
|
} else {
|
||||||
|
gameTitle.setText(event.getTitle());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
id = event.getId();
|
id = event.getId();
|
||||||
mRefreshView.initData();
|
mRefreshView.initData();
|
||||||
closeAnimSudGameListEvent();
|
closeAnimSudGameListEvent();
|
||||||
|
Loading…
Reference in New Issue
Block a user