中英文修改
This commit is contained in:
parent
45ad8a9810
commit
7b62409bf1
@ -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);
|
||||
|
@ -36,7 +36,7 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/replacement_wish"
|
||||
android:layout_width="117dp"
|
||||
android:layout_width="140dp"
|
||||
android:layout_height="31dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginStart="8dp"
|
||||
|
@ -66,6 +66,7 @@
|
||||
android:id="@+id/avatar"
|
||||
android:layout_width="35dp"
|
||||
android:layout_height="35dp"
|
||||
android:visibility="gone"
|
||||
android:layout_marginStart="6dp"
|
||||
android:scaleType="centerCrop"
|
||||
app:riv_oval="true" />
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="270dp"
|
||||
android:layout_height="180dp"
|
||||
android:layout_width="290dp"
|
||||
android:layout_height="200dp"
|
||||
app:cardCornerRadius="18dp"
|
||||
app:cardElevation="16dp">
|
||||
|
||||
|
13
common/src/main/res/layout/sud_no_data1.xml
Normal file
13
common/src/main/res/layout/sud_no_data1.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:background="#201E1A"
|
||||
android:textColor="@color/white"
|
||||
android:text="@string/interactive_game_rooms_oin" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -1104,7 +1104,7 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="replacement_wish_day">Reset Your: Day</string>
|
||||
<string name="replacement_wish_zhou">Reset Wish: Week</string>
|
||||
<string name="replacement_wish_lunar">Reset Wish: Month</string>
|
||||
<string name="replacement_wish_seasonal">Reset Wish: Month</string>
|
||||
<string name="replacement_wish_seasonal">Reset Wish: seasonal</string>
|
||||
<string name="replacement_reset_confirmed">Is reset confirmed</string>
|
||||
<string name="replacement_reset_confirmed_hint">Resetting will empty the wish list, \nregardless of whether the wish is completed or not</string>
|
||||
<string name="replacement_reset_confirmed_sure">Confirm Reset</string>
|
||||
@ -1354,5 +1354,11 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="interactive_game_search_room_broadcast_room">Whether to enter the live broadcast room</string>
|
||||
<string name="interactive_game_search_room_bhe_game">No,only enter the game</string>
|
||||
<string name="interactive_game_rooms_oin">There are currently no rooms to join</string>
|
||||
<string name="prank_switch">Turntable prank switch</string>
|
||||
<string name="see_the_contents_of">After closing, all users will not be able to see the contents of the turntable</string>
|
||||
<string name="diamonds_every_time">The turntable consumes diamonds every time</string>
|
||||
<string name="diamonds_every_time_requirement_of">Minimum requirement of 1000 diamonds</string>
|
||||
<string name="diamonds_every_time_requirement_of_hint">Fill in the content of the prank,Fill in a minimum of 2 words and a maximum of 10 words</string>
|
||||
<string name="prank_content_yet_hint">You have not set up the prank content yet</string>
|
||||
|
||||
</resources>
|
||||
|
@ -1351,4 +1351,10 @@
|
||||
<string name="interactive_game_search_room_broadcast_room">是否同步進入主播直播間</string>
|
||||
<string name="interactive_game_search_room_bhe_game">否,僅進入遊戲</string>
|
||||
<string name="interactive_game_rooms_oin">当前没有可加入的房间</string>
|
||||
<string name="prank_switch">轉盤整蠱開關</string>
|
||||
<string name="see_the_contents_of">關閉後所有用戶將無法看到轉盤內容</string>
|
||||
<string name="diamonds_every_time">轉盤每次消耗鑽石</string>
|
||||
<string name="diamonds_every_time_requirement_of">最少1,000鑽石起步</string>
|
||||
<string name="diamonds_every_time_requirement_of_hint">填寫整蠱內容,最少2個字,最多10個字</string>
|
||||
<string name="prank_content_yet_hint">您目前還未設置整蠱內容</string>
|
||||
</resources>
|
||||
|
@ -1350,4 +1350,10 @@
|
||||
<string name="interactive_game_search_room_broadcast_room">是否同步進入主播直播間</string>
|
||||
<string name="interactive_game_search_room_bhe_game">否,僅進入遊戲</string>
|
||||
<string name="interactive_game_rooms_oin">当前没有可加入的房间</string>
|
||||
<string name="prank_switch">轉盤整蠱開關</string>
|
||||
<string name="see_the_contents_of">關閉後所有用戶將無法看到轉盤內容</string>
|
||||
<string name="diamonds_every_time">轉盤每次消耗鑽石</string>
|
||||
<string name="diamonds_every_time_requirement_of">最少1,000鑽石起步</string>
|
||||
<string name="diamonds_every_time_requirement_of_hint">填寫整蠱內容,最少2個字,最多10個字</string>
|
||||
<string name="prank_content_yet_hint">您目前還未設置整蠱內容</string>
|
||||
</resources>
|
||||
|
@ -1350,5 +1350,11 @@
|
||||
<string name="interactive_game_search_room_broadcast_room">是否同步進入主播直播間</string>
|
||||
<string name="interactive_game_search_room_bhe_game">否,僅進入遊戲</string>
|
||||
<string name="interactive_game_rooms_oin">当前没有可加入的房间</string>
|
||||
<string name="prank_switch">轉盤整蠱開關</string>
|
||||
<string name="see_the_contents_of">關閉後所有用戶將無法看到轉盤內容</string>
|
||||
<string name="diamonds_every_time">轉盤每次消耗鑽石</string>
|
||||
<string name="diamonds_every_time_requirement_of">最少1,000鑽石起步</string>
|
||||
<string name="diamonds_every_time_requirement_of_hint">填寫整蠱內容,最少2個字,最多10個字</string>
|
||||
<string name="prank_content_yet_hint">您目前還未設置整蠱內容</string>
|
||||
|
||||
</resources>
|
||||
|
@ -1104,7 +1104,7 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="replacement_wish_day">Reset Your: Day</string>
|
||||
<string name="replacement_wish_zhou">Reset Wish: Week</string>
|
||||
<string name="replacement_wish_lunar">Reset Wish: Month</string>
|
||||
<string name="replacement_wish_seasonal">Reset Wish: Month</string>
|
||||
<string name="replacement_wish_seasonal">Reset Wish: seasonal</string>
|
||||
<string name="replacement_reset_confirmed">Is reset confirmed</string>
|
||||
<string name="replacement_reset_confirmed_hint">Resetting will empty the wish list, \nregardless of whether the wish is completed or not</string>
|
||||
<string name="replacement_reset_confirmed_sure">Confirm Reset</string>
|
||||
@ -1357,4 +1357,10 @@ Limited ride And limited avatar frame</string>
|
||||
<string name="interactive_game_search_room_broadcast_room">Whether to enter the live broadcast room</string>
|
||||
<string name="interactive_game_search_room_bhe_game">No,only enter the game</string>
|
||||
<string name="interactive_game_rooms_oin">There are currently no rooms to join</string>
|
||||
<string name="prank_switch">Turntable prank switch</string>
|
||||
<string name="see_the_contents_of">After closing, all users will not be able to see the contents of the turntable</string>
|
||||
<string name="diamonds_every_time">The turntable consumes diamonds every time</string>
|
||||
<string name="diamonds_every_time_requirement_of">Minimum requirement of 1000 diamonds</string>
|
||||
<string name="diamonds_every_time_requirement_of_hint">Fill in the content of the prank,Fill in a minimum of 2 words and a maximum of 10 words</string>
|
||||
<string name="prank_content_yet_hint">You have not set up the prank content yet</string>
|
||||
</resources>
|
||||
|
@ -1289,9 +1289,9 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL
|
||||
//粉絲團粉絲團
|
||||
//不是粉絲
|
||||
if (LiveAudienceActivity.is_fans != null && LiveAudienceActivity.is_fans.equals("2")) {
|
||||
bundle.putString(Constants.URL, CommonAppConfig.HOST + "/h5/live/joinFansClub.html" + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&anchorUid=" + uid);
|
||||
bundle.putString(Constants.URL, CommonAppConfig.HOST + "/h5/live/joinFansClub.html" + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&anchorUid=" + uid+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0));
|
||||
} else {
|
||||
bundle.putString(Constants.URL, CommonAppConfig.HOST + "/h5/live/fansClub.html" + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&anchorUid=" + uid);
|
||||
bundle.putString(Constants.URL, CommonAppConfig.HOST + "/h5/live/fansClub.html" + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&anchorUid=" + uid+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0));
|
||||
}
|
||||
bundle.putString("liveUid", mLiveUid);
|
||||
bundle.putString("anchorName", mAncherName);
|
||||
|
@ -8,10 +8,14 @@ import android.view.ViewGroup;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.yunbao.common.bean.PrankGiftBean;
|
||||
import com.yunbao.common.bean.PrankTurntableBean;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.utils.DialogUitl;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
@ -19,9 +23,7 @@ import com.yunbao.live.R;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import java.util.Locale;
|
||||
|
||||
public class LivePrankRecyclerAdapter extends RecyclerView.Adapter<LivePrankRecyclerAdapter.PrankRecyclerViewHolder> {
|
||||
public static final int TYPE_TURNTABLE = 0;
|
||||
@ -145,6 +147,7 @@ public class LivePrankRecyclerAdapter extends RecyclerView.Adapter<LivePrankRecy
|
||||
probability = itemView.findViewById(R.id.prank_turntable_probability);
|
||||
context = itemView.findViewById(R.id.prank_turntable_val);
|
||||
context.setOnClickListener(v -> {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
DialogUitl.showSimpleInputDialog(mContext, "填寫整蠱內容", DialogUitl.INPUT_TYPE_TEXT, 10, new DialogUitl.SimpleCallback() {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
@ -166,12 +169,41 @@ public class LivePrankRecyclerAdapter extends RecyclerView.Adapter<LivePrankRecy
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
DialogUitl.showSimpleInputDialog(mContext, "Fill in the content of the prank", DialogUitl.INPUT_TYPE_TEXT, 10, new DialogUitl.SimpleCallback() {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
if (WordUtil.isSpecialChar(content)) {
|
||||
ToastUtil.show("The prank content cannot contain special characters");
|
||||
return;
|
||||
}
|
||||
if (content.length() >= 2 && content.length() <= 10) {
|
||||
context.setText(content);
|
||||
onItemClickListener.onItemClick(content, ((PrankTurntableBean) list.get((Integer) itemView.getTag())).getId());
|
||||
((PrankTurntableBean) list.get((Integer) itemView.getTag())).setContext(content);
|
||||
dialog.dismiss();
|
||||
} /*else if (content.length() == 0) {
|
||||
context.setText("");
|
||||
onItemClickListener.onItemClick(content, ((PrankTurntableBean)list.get((Integer) itemView.getTag())).getId());
|
||||
dialog.dismiss();
|
||||
} */ else {
|
||||
ToastUtil.show("Fill in a minimum of 2 words and a maximum of 10 words");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
public void setDate(PrankTurntableBean bean, int position) {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
title.setText("轉盤" + getChineseNum(bean.getId()) + "號位");
|
||||
probability.setText(getProbability(bean.getId()));
|
||||
} else {
|
||||
title.setText("Turntable" + getChineseNum(bean.getId()));
|
||||
}
|
||||
|
||||
probability.setText(getProbability(bean.getId(), mContext));
|
||||
context.setText(bean.getContext());
|
||||
itemView.setTag(position);
|
||||
}
|
||||
@ -194,7 +226,8 @@ public class LivePrankRecyclerAdapter extends RecyclerView.Adapter<LivePrankRecy
|
||||
return "";
|
||||
}
|
||||
|
||||
private String getProbability(int id) {
|
||||
private String getProbability(int id, Context mContext) {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
switch (id) {
|
||||
case 1:
|
||||
return "抽取幾率:40%";
|
||||
@ -209,6 +242,23 @@ public class LivePrankRecyclerAdapter extends RecyclerView.Adapter<LivePrankRecy
|
||||
default:
|
||||
return "抽取幾率:1%";
|
||||
}
|
||||
} else {
|
||||
switch (id) {
|
||||
case 1:
|
||||
return "Extraction probability:40%";
|
||||
case 2:
|
||||
return "Extraction probability:30%";
|
||||
case 3:
|
||||
return "Extraction probability:15%";
|
||||
case 4:
|
||||
return "Extraction probability:10%";
|
||||
case 5:
|
||||
return "Extraction probability:4%";
|
||||
default:
|
||||
return "Extraction probability:1%";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -16,9 +16,11 @@ import com.yunbao.common.bean.LiveClassBean;
|
||||
import com.yunbao.common.custom.MyRadioButton;
|
||||
import com.yunbao.common.glide.ImgLoader;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.live.R;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
/**
|
||||
* Created by cxf on 2018/10/7.
|
||||
|
@ -1,7 +1,6 @@
|
||||
package com.yunbao.live.dialog;
|
||||
|
||||
import android.app.Dialog;
|
||||
import android.graphics.Color;
|
||||
import android.os.Bundle;
|
||||
import android.view.Gravity;
|
||||
import android.view.View;
|
||||
@ -15,7 +14,6 @@ import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.google.android.material.tabs.TabLayout;
|
||||
import com.yunbao.common.bean.LiveGiftBean;
|
||||
import com.yunbao.common.bean.PrankGiftBean;
|
||||
import com.yunbao.common.bean.PrankHttpTurntableBean;
|
||||
import com.yunbao.common.bean.PrankTurntableBean;
|
||||
@ -23,6 +21,7 @@ import com.yunbao.common.dialog.AbsDialogFragment;
|
||||
import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.interfaces.OnItemClickListener;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.utils.DialogUitl;
|
||||
import com.yunbao.common.utils.DpUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
@ -32,6 +31,7 @@ import com.yunbao.live.adapter.LivePrankRecyclerAdapter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
public class LivePrankDialogFragment extends AbsDialogFragment implements View.OnClickListener {
|
||||
private TabLayout mTabLayout;
|
||||
@ -138,7 +138,14 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
mPrankBtn.setOnClickListener(view -> {
|
||||
if ((int) view.getTag() == 1) {
|
||||
if (giftBeans != null && giftBeans.size() >= 20) {
|
||||
|
||||
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("可添加禮物數量達到上限");
|
||||
}else {
|
||||
ToastUtil.show("The maximum number of gifts that can be added has been ");
|
||||
}
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
GiftPopDialog dialog = new GiftPopDialog(mContext, new GiftPopDialog.ActionListener() {
|
||||
@ -167,8 +174,14 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
private void initTab() {
|
||||
TabLayout.Tab turntable = mTabLayout.newTab();
|
||||
TabLayout.Tab gift = mTabLayout.newTab();
|
||||
if (IMLoginManager.get(getContext()).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
turntable.setText("轉盤整蠱");
|
||||
gift.setText("禮物整蠱");
|
||||
}else {
|
||||
turntable.setText("Turntable prank");
|
||||
gift.setText("Gift prank");
|
||||
}
|
||||
|
||||
turntable.setTag(0);
|
||||
gift.setTag(1);
|
||||
mTabLayout.addTab(turntable);
|
||||
@ -185,14 +198,24 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
mGiftNotDate.setVisibility(View.GONE);
|
||||
recyclerAdapter.setViewType(LivePrankRecyclerAdapter.TYPE_TURNTABLE);
|
||||
mPrankBtn.setBackgroundResource(R.drawable.bg_live_prank_turntable_save);
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
mPrankBtn.setText("保存設置");
|
||||
} else {
|
||||
mPrankBtn.setText("Save Settings");
|
||||
}
|
||||
|
||||
mPrankBtn.setTag(0);
|
||||
recyclerAdapter.clearList();
|
||||
initTurntableData();
|
||||
} else {
|
||||
mTurntableConfigLayout.setVisibility(View.GONE);
|
||||
mPrankBtn.setBackgroundResource(R.drawable.bg_live_prank_gift_set);
|
||||
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
mPrankBtn.setText("添加禮物");
|
||||
} else {
|
||||
mPrankBtn.setText("Add gift");
|
||||
}
|
||||
mPrankBtn.setTag(1);
|
||||
recyclerAdapter.clearList();
|
||||
mGiftNotDate.setVisibility(View.VISIBLE);
|
||||
@ -297,7 +320,12 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
|
||||
private void setPrankConfig() {
|
||||
if (StringUtil.isEmpty(bean.getTurntable1(), bean.getTurntable2(), bean.getTurntable3(), bean.getTurntable4(), bean.getTurntable5(), bean.getTurntable6())) {
|
||||
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("保存失败:所有转盘位置必填");
|
||||
} else {
|
||||
ToastUtil.show("Save failed: all turntable positions must be filled in");
|
||||
}
|
||||
return;
|
||||
}
|
||||
LiveNetManager.get(mContext).setAnchorPrankTurntable(
|
||||
@ -313,12 +341,21 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
new HttpCallback<Object>() {
|
||||
@Override
|
||||
public void onSuccess(Object data) {
|
||||
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("保存成功");
|
||||
} else {
|
||||
ToastUtil.show("Save success");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onError(String error) {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("保存失败:" + error);
|
||||
} else {
|
||||
ToastUtil.show("Save failed" + error);
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
@ -335,6 +372,7 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
mTurntableConfigImageView.setImageResource(R.mipmap.special_icon_off);
|
||||
}
|
||||
} else if (id == R.id.switch2_btn) {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
DialogUitl.showSimpleInputDialog(mContext, "請輸入數量", DialogUitl.INPUT_TYPE_NUMBER, new DialogUitl.SimpleCallback() {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
@ -352,6 +390,26 @@ public class LivePrankDialogFragment extends AbsDialogFragment implements View.O
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
DialogUitl.showSimpleInputDialog(mContext, "Please enter the quantity", DialogUitl.INPUT_TYPE_NUMBER, new DialogUitl.SimpleCallback() {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
try {
|
||||
int coin = Integer.parseInt(content);
|
||||
if (coin < 1000) {
|
||||
ToastUtil.show("Minimum requirement of 1000 diamonds");
|
||||
return;
|
||||
}
|
||||
setCoin(Long.parseLong(content));
|
||||
dialog.dismiss();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
ToastUtil.show("Minimum requirement of 1000 diamonds");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/select"
|
||||
android:layout_width="92dp"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="28dp"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
|
@ -29,11 +29,12 @@
|
||||
<TextView
|
||||
android:id="@+id/prank_turntable_val"
|
||||
android:layout_width="match_parent"
|
||||
android:singleLine="true"
|
||||
android:layout_height="43dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:background="@drawable/bg_prank_coin"
|
||||
android:ems="10"
|
||||
android:hint="填寫整蠱內容,最少2個字,最多10個字"
|
||||
android:hint="@string/diamonds_every_time_requirement_of_hint"
|
||||
android:gravity="start|center"
|
||||
android:paddingStart="12dp"
|
||||
android:paddingEnd="12dp"
|
||||
|
@ -7,11 +7,11 @@
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/turntable_layout"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="visible"
|
||||
android:orientation="vertical">
|
||||
android:layout_marginTop="10dp"
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/turntable_config_layout"
|
||||
@ -23,17 +23,19 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="轉盤整蠱開關"
|
||||
android:text="@string/prank_switch"
|
||||
android:textColor="#A992FF"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/switch1_desc_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="330dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="關閉後所有用戶將無法看到轉盤內容"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/see_the_contents_of"
|
||||
android:textColor="#B3B3B3"
|
||||
android:textSize="10sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@ -57,10 +59,12 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/switch2_title_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="290dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="轉盤每次消耗鑽石"
|
||||
android:ellipsize="end"
|
||||
android:singleLine="true"
|
||||
android:text="@string/diamonds_every_time"
|
||||
android:textColor="#A992FF"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
@ -70,7 +74,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:text="最少1,000鑽石起步"
|
||||
android:text="@string/diamonds_every_time_requirement_of"
|
||||
android:textColor="#B3B3B3"
|
||||
android:textSize="10sp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
@ -106,7 +110,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="250dp"
|
||||
android:gravity="center"
|
||||
android:visibility="gone"
|
||||
android:text="您目前還未設置整蠱內容"
|
||||
android:textColor="#BFBFBF"
|
||||
android:text="您目前還未設置整蠱內容" />
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
BIN
live/src/main/res/mipmap-b+en+us/btn_attention.png
Normal file
BIN
live/src/main/res/mipmap-b+en+us/btn_attention.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
live/src/main/res/mipmap-b+en+us/ic_live_float_call_me.png
Normal file
BIN
live/src/main/res/mipmap-b+en+us/ic_live_float_call_me.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
live/src/main/res/mipmap-b+en+us/ic_live_user_mailbox.png
Normal file
BIN
live/src/main/res/mipmap-b+en+us/ic_live_user_mailbox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
BIN
live/src/main/res/mipmap-b+en+us/icon_cange.png
Normal file
BIN
live/src/main/res/mipmap-b+en+us/icon_cange.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
BIN
live/src/main/res/mipmap-b+en+us/report_add.png
Normal file
BIN
live/src/main/res/mipmap-b+en+us/report_add.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
@ -79,7 +79,7 @@
|
||||
<string name="live_anchor_edit_call_me_not_gift_toash">No gift selected</string>
|
||||
<string name="live_anchor_edit_call_me_letter_title">Letter Content</string>
|
||||
<string name="live_anchor_edit_call_me_letter_content">The most romantic thing I can think of is to grow old with you, to collect all the laughs along the way, and to talk about them later in a rocking chair.</string>
|
||||
<string name="live_ready_anchor_call_me">Contact details</string>
|
||||
<string name="live_ready_anchor_call_me">Contact</string>
|
||||
<string name="live_anchor_say_title">Editors Goddess says</string>
|
||||
<string name="live_anchor_say_edit_hint">Please enter the words the goddess wants to say, limited to 16 words.</string>
|
||||
<string name="live_anchor_say_select_style">Select Style</string>
|
||||
|
@ -44,6 +44,7 @@ import com.yunbao.common.utils.ProcessImageUtil;
|
||||
import com.yunbao.common.utils.RouteUtil;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.CompleteInformationPopup;
|
||||
import com.yunbao.common.views.UpdateSexPopup;
|
||||
import com.yunbao.common.views.weight.ViewClicksAntiShake;
|
||||
@ -446,7 +447,7 @@ public class EditProfileActivity extends AbsActivity {
|
||||
}
|
||||
Constants.myIntoIndex = 2;
|
||||
Intent intent = new Intent(mContext, MyWebViewActivity2.class);
|
||||
intent.putExtra(Constants.URL, CommonAppConfig.HOST + "/h5/table/Modify-information.html" + "?token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid());
|
||||
intent.putExtra(Constants.URL, CommonAppConfig.HOST + "/h5/table/Modify-information.html" + "?token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid()+ "&isZh=" + (WordUtil.isNewZh() ? "1" : 0));
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
|
@ -144,6 +144,7 @@ public class MainHomeGameViewHolder extends AbsMainHomeChildViewHolder implement
|
||||
}
|
||||
});
|
||||
mRefreshView.initData();
|
||||
mRefreshView.setEmptyLayoutId(R.layout.sud_no_data);
|
||||
ViewClicksAntiShake.clicksAntiShake(findViewById(com.yunbao.common.R.id.random_start), new ViewClicksAntiShake.ViewClicksCallBack() {
|
||||
@Override
|
||||
public void onViewClicks() {
|
||||
@ -155,6 +156,12 @@ public class MainHomeGameViewHolder extends AbsMainHomeChildViewHolder implement
|
||||
Intent intent = new Intent(context, SudGameActivity.class);
|
||||
intent.putExtra("CreateSudRoom", new Gson().toJson(data));
|
||||
context.startActivity(intent);
|
||||
}else {
|
||||
if (IMLoginManager.get(mContext).getLocaleLanguage() == Locale.SIMPLIFIED_CHINESE) {
|
||||
ToastUtil.show("当前没有可加入的房间");
|
||||
} else {
|
||||
ToastUtil.show("There are currently no rooms to join");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,108 +13,97 @@
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
android:paddingLeft="15dp"
|
||||
android:paddingRight="15dp"
|
||||
>
|
||||
android:paddingRight="15dp">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/modify_pwd_old"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
android:textSize="13sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit_old"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="80dp"
|
||||
android:layout_marginLeft="110dp"
|
||||
android:background="@null"
|
||||
android:hint="@string/modify_pwd_old_1"
|
||||
android:inputType="textPassword"
|
||||
android:textColor="@color/textColor"
|
||||
android:textColorHint="@color/gray3"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
android:textSize="16sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
style="@style/line2"
|
||||
/>
|
||||
<View style="@style/line2" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="110dp"
|
||||
android:gravity="center"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/modify_pwd_new"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
android:textSize="13sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit_new"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="80dp"
|
||||
android:layout_marginLeft="110dp"
|
||||
android:background="@null"
|
||||
android:hint="@string/modify_pwd_new_1"
|
||||
android:inputType="textPassword"
|
||||
android:textColor="@color/textColor"
|
||||
android:textColorHint="@color/gray3"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
android:textSize="16sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<View
|
||||
style="@style/line2"
|
||||
/>
|
||||
<View style="@style/line2" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:orientation="horizontal"
|
||||
>
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="110dp"
|
||||
android:gravity="center"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="@string/modify_pwd_confirm"
|
||||
android:textColor="@color/textColor"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
android:textSize="13sp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/edit_confirm"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginLeft="80dp"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_marginLeft="110dp"
|
||||
android:background="@null"
|
||||
android:hint="@string/modify_pwd_confirm_1"
|
||||
android:inputType="textPassword"
|
||||
android:textColor="@color/textColor"
|
||||
android:textColorHint="@color/gray3"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
android:textSize="16sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@ -125,12 +114,11 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginLeft="30dp"
|
||||
android:layout_marginRight="30dp"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginRight="30dp"
|
||||
android:background="@drawable/login_btn"
|
||||
android:gravity="center"
|
||||
android:text="@string/modify_pwd_confirm_2"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp"
|
||||
/>
|
||||
android:textSize="16sp" />
|
||||
</LinearLayout>
|
@ -15,8 +15,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/change_batch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="65dp"
|
||||
android:layout_height="22dp"
|
||||
android:layout_gravity="center_vertical|right"
|
||||
android:background="@mipmap/icon_cange" />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user