修改中英文
This commit is contained in:
@@ -32,6 +32,7 @@ import com.yunbao.common.http.base.HttpCallback;
|
||||
import com.yunbao.common.http.live.LiveNetManager;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.LiveAnchorMessageCustomPopup;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.activity.LiveRyAnchorActivity;
|
||||
@@ -129,10 +130,10 @@ public class LiveNewFunctionDialogFragment extends AbsDialogFragment implements
|
||||
|
||||
if (leave == 0) {
|
||||
((ImageView) mLeaveView.findViewById(R.id.live_tool_leave_img)).setImageResource(R.mipmap.icon_leave);
|
||||
((TextView) mLeaveView.findViewById(R.id.live_tool_leave_text)).setText(R.string.live_zslk);
|
||||
((TextView) mLeaveView.findViewById(R.id.live_tool_leave_text)).setText(mContext.getString(R.string.live_zslk));
|
||||
} else {
|
||||
((ImageView) mLeaveView.findViewById(R.id.live_tool_leave_img)).setImageResource(R.mipmap.icon_leave_p);
|
||||
((TextView) mLeaveView.findViewById(R.id.live_tool_leave_text)).setText(R.string.live_zslk1);
|
||||
((TextView) mLeaveView.findViewById(R.id.live_tool_leave_text)).setText(mContext.getString(R.string.live_zslk1));
|
||||
}
|
||||
mLiveRoomHandler = new LiveRoomHandler();
|
||||
mLiveTimeTextView.setText(StringUtil.getDurationText(mAnchorLiveTime));
|
||||
@@ -169,7 +170,7 @@ public class LiveNewFunctionDialogFragment extends AbsDialogFragment implements
|
||||
mFunctionClickListener.onClick(LIVE_FUNC_CAMERA);
|
||||
} else if (id == R.id.live_tool_leave) {
|
||||
if (isPk) {
|
||||
ToastUtil.show("PK中禁止离开");
|
||||
ToastUtil.show(WordUtil.isNewZh()?"PK中禁止离开":"Do not leave in PK");
|
||||
return;
|
||||
}
|
||||
mFunctionClickListener.onClick(LIVE_FUNC_ZSLK);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
@@ -55,7 +56,7 @@
|
||||
android:id="@+id/btn_guard"
|
||||
android:layout_width="88dp"
|
||||
android:layout_height="23dp"
|
||||
android:layout_marginStart="14dp"
|
||||
android:layout_marginStart="25dp"
|
||||
android:layout_marginTop="14dp"
|
||||
android:background="@drawable/bg_user_card_guard"
|
||||
android:gravity="center"
|
||||
@@ -89,8 +90,8 @@
|
||||
android:layout_marginEnd="14dp"
|
||||
android:src="@mipmap/icon_live_usercard_setting"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toStartOf="@+id/btn_report"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
android:paddingTop="4.33dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingBottom="4.33dp"
|
||||
android:text="我方"
|
||||
android:text="@string/live_link_mic_pk_1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
@@ -110,7 +110,7 @@
|
||||
android:paddingTop="4.33dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingBottom="4.33dp"
|
||||
android:text="我方"
|
||||
android:text="@string/live_link_mic_pk_1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
@@ -136,7 +136,7 @@
|
||||
android:paddingTop="4.33dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingBottom="4.33dp"
|
||||
android:text="我方"
|
||||
android:text="@string/live_link_mic_pk_1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
|
||||
@@ -193,7 +193,7 @@
|
||||
android:paddingTop="4.33dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingBottom="4.33dp"
|
||||
android:text="我方"
|
||||
android:text="@string/live_link_mic_pk_1"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user