中英文修改
This commit is contained in:
@@ -152,7 +152,7 @@ public class SudGameListPopup extends BottomPopupView {
|
||||
}
|
||||
});
|
||||
mRefreshView.initData();
|
||||
mRefreshView.setEmptyLayoutId(R.layout.sud_no_data);
|
||||
mRefreshView.setEmptyLayoutId(R.layout.sud_no_data1);
|
||||
ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.random_start), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||
@Override
|
||||
public void onViewClicks() {
|
||||
@@ -168,6 +168,12 @@ public class SudGameListPopup extends BottomPopupView {
|
||||
.asCustom(new LiveSudGamePopup(getContext(), data))
|
||||
.show();
|
||||
dialog.dismiss();
|
||||
}else {
|
||||
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("当前没有可加入的房间");
|
||||
} else {
|
||||
ToastUtil.show("There are currently no rooms to join");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.yunbao.common.views;
|
||||
|
||||
import android.graphics.Color;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -88,7 +89,7 @@ public class LiveNewWishGiftPopup extends BottomPopupView {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
TextView wishItem = (TextView) LayoutInflater.from(getContext())
|
||||
.inflate(R.layout.view_tablaout_wish_item, null, false);
|
||||
|
||||
wishItem.setTextSize(TypedValue.COMPLEX_UNIT_SP, 15);
|
||||
switch (i) {
|
||||
case 0:
|
||||
wishItem.setText(R.string.live_gift);
|
||||
@@ -112,7 +113,7 @@ public class LiveNewWishGiftPopup extends BottomPopupView {
|
||||
View tab = tabs.getChildAt(i);
|
||||
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) tab.getLayoutParams();
|
||||
layoutParams.setMarginEnd(DpUtil.dp2px(4));
|
||||
layoutParams.width = DpUtil.dp2px(58);
|
||||
layoutParams.width = DpUtil.dp2px(90);
|
||||
tab.setLayoutParams(layoutParams);
|
||||
wishTab.requestLayout();
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ public class LiveNewWishListPopup extends BottomPopupView {
|
||||
ViewList.add(zhouXinFragment);
|
||||
ViewList.add(lunarWishFragment);
|
||||
ViewList.add(seasonalWishFragment);
|
||||
if (TextUtils.equals(ct, "zh")) {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
wishListTop.setBackgroundResource(R.drawable.wish_list_day_zh);
|
||||
} else {
|
||||
wishListTop.setBackgroundResource(R.drawable.wish_list_day_en);
|
||||
@@ -254,7 +254,7 @@ public class LiveNewWishListPopup extends BottomPopupView {
|
||||
type = tab.getId() + 1;
|
||||
switch (type) {
|
||||
case 1:
|
||||
if (TextUtils.equals(ct, "zh")) {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
wishListTop.setBackgroundResource(R.drawable.wish_list_day_zh);
|
||||
} else {
|
||||
wishListTop.setBackgroundResource(R.drawable.wish_list_day_en);
|
||||
@@ -262,7 +262,7 @@ public class LiveNewWishListPopup extends BottomPopupView {
|
||||
replacementWish.setText(R.string.replacement_wish_day);
|
||||
break;
|
||||
case 2:
|
||||
if (TextUtils.equals(ct, "zh")) {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
wishListTop.setBackgroundResource(R.drawable.wish_list_week_zh);
|
||||
} else {
|
||||
wishListTop.setBackgroundResource(R.drawable.wish_list_week_en);
|
||||
@@ -270,7 +270,7 @@ public class LiveNewWishListPopup extends BottomPopupView {
|
||||
replacementWish.setText(R.string.replacement_wish_zhou);
|
||||
break;
|
||||
case 3:
|
||||
if (TextUtils.equals(ct, "zh")) {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
wishListTop.setBackgroundResource(R.drawable.wish_list_lunar_zh);
|
||||
} else {
|
||||
wishListTop.setBackgroundResource(R.drawable.wish_list_lunar_en);
|
||||
@@ -278,7 +278,7 @@ public class LiveNewWishListPopup extends BottomPopupView {
|
||||
replacementWish.setText(R.string.replacement_wish_lunar);
|
||||
break;
|
||||
case 4:
|
||||
if (TextUtils.equals(ct, "zh")) {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
wishListTop.setBackgroundResource(R.drawable.wish_list_seasonal_zh);
|
||||
} else {
|
||||
wishListTop.setBackgroundResource(R.drawable.wish_list_seasonal_en);
|
||||
|
||||
Reference in New Issue
Block a user