diff --git a/common/src/main/res/drawable/selector_protocol_check.xml b/common/src/main/res/drawable/selector_protocol_check.xml
new file mode 100644
index 000000000..a4042e2f1
--- /dev/null
+++ b/common/src/main/res/drawable/selector_protocol_check.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/common/src/main/res/mipmap-xxhdpi/icon_protocol_check.png b/common/src/main/res/mipmap-xxhdpi/icon_protocol_check.png
new file mode 100644
index 000000000..07d294e38
Binary files /dev/null and b/common/src/main/res/mipmap-xxhdpi/icon_protocol_check.png differ
diff --git a/common/src/main/res/mipmap-xxhdpi/icon_protocol_uncheck.png b/common/src/main/res/mipmap-xxhdpi/icon_protocol_uncheck.png
new file mode 100644
index 000000000..bb1b4754a
Binary files /dev/null and b/common/src/main/res/mipmap-xxhdpi/icon_protocol_uncheck.png differ
diff --git a/common/src/main/res/values-en/strings.xml b/common/src/main/res/values-en/strings.xml
index 1f8d3c2fe..004dcf125 100644
--- a/common/src/main/res/values-en/strings.xml
+++ b/common/src/main/res/values-en/strings.xml
@@ -1006,4 +1006,7 @@ Limited ride And limited avatar frame
Broadcast
Click To View
Anchor Task
+ I have read and agreed to the
+ Please read and agree to the PDLIVE Host Agreement
+ PDLIVE Host Agreement
diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml
index 9fc8b1987..0d846e4e7 100644
--- a/common/src/main/res/values/strings.xml
+++ b/common/src/main/res/values/strings.xml
@@ -1027,4 +1027,7 @@
開播數據
點擊查看
主播任務
+ 我已閱讀並同意
+ 請閱讀並同意《PDLIVE主播協議》
+ 《PDLIVE主播協議》
diff --git a/config.gradle b/config.gradle
index 00ea7a5b8..d755abbee 100644
--- a/config.gradle
+++ b/config.gradle
@@ -9,9 +9,9 @@ ext {
]
manifestPlaceholders = [
//正式
-// serverHost : "https://napi.yaoulive.com",
+ serverHost : "https://napi.yaoulive.com",
//测试
- serverHost : "https://ceshi.yaoulive.com",
+// serverHost : "https://ceshi.yaoulive.com",
//腾讯地图
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
diff --git a/live/src/main/java/com/yunbao/live/views/LiveNewReadyRyViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveNewReadyRyViewHolder.java
index 9312232bc..71f803ca0 100644
--- a/live/src/main/java/com/yunbao/live/views/LiveNewReadyRyViewHolder.java
+++ b/live/src/main/java/com/yunbao/live/views/LiveNewReadyRyViewHolder.java
@@ -8,6 +8,7 @@ import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
+import android.text.Html;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
@@ -76,7 +77,7 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
private EditText mEditTitle;
private ProcessImageUtil mImageUtil;
private File mAvatarFile;
- private TextView mLiveClass;
+ private TextView mLiveClass, anchorAgreement;
private TextView mLiveTypeTextView, liveClarity;//房间类型TextView
private TextView mLiveWishListTextView;//心愿单TextView
private int mLiveClassID;//直播频道id
@@ -88,9 +89,10 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
private LiveClassBean classBean;
private FaceManager manager;
private TextView faceTextView;//提示人脸未检测到的TextView
- private ImageView imgClarity;
+ private ImageView imgClarity, selectorProtocol;
private int selectClarity = 1;
private LiveOpenCustomPopup liveOpenCustomPopup;
+ private boolean selector = false;
public LiveNewReadyRyViewHolder(Context context, ViewGroup parentView, int liveSdk) {
super(context, parentView, liveSdk);
@@ -112,7 +114,9 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
public void init() {
mRootView = (ConstraintLayout) findViewById(R.id.traceroute_rootview);
imgClarity = (ImageView) findViewById(R.id.img_clarity);
+ selectorProtocol = (ImageView) findViewById(R.id.selector_protocol);
liveClarity = (TextView) findViewById(R.id.live_clarity);
+ anchorAgreement = (TextView) findViewById(R.id.anchor_agreement);
mRootView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
@@ -121,6 +125,7 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
});
+
mAvatar = (ConstraintLayout) findViewById(R.id.avatar);
mAvatar.setOnClickListener(this);
UserBean u = CommonAppConfig.getInstance().getUserBean();
@@ -271,6 +276,19 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
.asCustom(liveClarityCustomPopup)
.show();
});
+ String keywordHtml2 = "" + mContext.getString(R.string.anchor_hint) + "";
+ String contextHtml = "" + mContext.getString(R.string.anchor_agreement) + "";
+ anchorAgreement.setText(Html.fromHtml(contextHtml + keywordHtml2));
+ selectorProtocol.setPressed(true);
+ selectorProtocol.setSelected(true);
+ selector = selectorProtocol.isSelected();
+ selectorProtocol.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ selector = !selector;
+ selectorProtocol.setSelected(selector);
+ }
+ });
}
private void setSelectClarity(int selectClarity) {
diff --git a/live/src/main/res/layout/view_new_live_ready.xml b/live/src/main/res/layout/view_new_live_ready.xml
index eadb2a80c..43961a227 100644
--- a/live/src/main/res/layout/view_new_live_ready.xml
+++ b/live/src/main/res/layout/view_new_live_ready.xml
@@ -267,7 +267,7 @@
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginStart="50dp"
- android:layout_marginBottom="53dp"
+ android:layout_marginBottom="83dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:srcCompat="@mipmap/icon_beauty" />
@@ -276,7 +276,7 @@
android:id="@+id/btn_start_live"
android:layout_width="189dp"
android:layout_height="42dp"
- android:layout_marginBottom="47dp"
+ android:layout_marginBottom="77dp"
android:background="@drawable/bg_live_ready_btn"
android:text="@string/live_start"
android:textColor="@color/white"
@@ -303,9 +303,36 @@
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginEnd="50dp"
- android:layout_marginBottom="53dp"
+ android:layout_marginBottom="83dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:srcCompat="@mipmap/icon_robot" />
+
+
+
+
+
+
+
\ No newline at end of file