主播用户协议
This commit is contained in:
parent
c1c4a7a38b
commit
1d66a9b7fb
5
common/src/main/res/drawable/selector_protocol_check.xml
Normal file
5
common/src/main/res/drawable/selector_protocol_check.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:drawable="@mipmap/icon_protocol_check" android:state_selected="true" />
|
||||||
|
<item android:drawable="@mipmap/icon_protocol_uncheck" android:state_selected="false" />
|
||||||
|
</selector>
|
BIN
common/src/main/res/mipmap-xxhdpi/icon_protocol_check.png
Normal file
BIN
common/src/main/res/mipmap-xxhdpi/icon_protocol_check.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
common/src/main/res/mipmap-xxhdpi/icon_protocol_uncheck.png
Normal file
BIN
common/src/main/res/mipmap-xxhdpi/icon_protocol_uncheck.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -1006,4 +1006,7 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="broadcast_data">Broadcast</string>
|
<string name="broadcast_data">Broadcast</string>
|
||||||
<string name="click_to_view">Click To View</string>
|
<string name="click_to_view">Click To View</string>
|
||||||
<string name="anchor_task">Anchor Task</string>
|
<string name="anchor_task">Anchor Task</string>
|
||||||
|
<string name="anchor_agreement">I have read and agreed to the </string>
|
||||||
|
<string name="anchor_agreement_hint">Please read and agree to the PDLIVE Host Agreement</string>
|
||||||
|
<string name="anchor_hint">PDLIVE Host Agreement</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1027,4 +1027,7 @@
|
|||||||
<string name="broadcast_data" >開播數據</string>
|
<string name="broadcast_data" >開播數據</string>
|
||||||
<string name="click_to_view">點擊查看</string>
|
<string name="click_to_view">點擊查看</string>
|
||||||
<string name="anchor_task">主播任務</string>
|
<string name="anchor_task">主播任務</string>
|
||||||
|
<string name="anchor_agreement">我已閱讀並同意</string>
|
||||||
|
<string name="anchor_agreement_hint">請閱讀並同意《PDLIVE主播協議》</string>
|
||||||
|
<string name="anchor_hint">《PDLIVE主播協議》</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -9,9 +9,9 @@ ext {
|
|||||||
]
|
]
|
||||||
manifestPlaceholders = [
|
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",
|
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",
|
||||||
|
@ -8,6 +8,7 @@ import android.graphics.drawable.Drawable;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Looper;
|
import android.os.Looper;
|
||||||
|
import android.text.Html;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -76,7 +77,7 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
|
|||||||
private EditText mEditTitle;
|
private EditText mEditTitle;
|
||||||
private ProcessImageUtil mImageUtil;
|
private ProcessImageUtil mImageUtil;
|
||||||
private File mAvatarFile;
|
private File mAvatarFile;
|
||||||
private TextView mLiveClass;
|
private TextView mLiveClass, anchorAgreement;
|
||||||
private TextView mLiveTypeTextView, liveClarity;//房间类型TextView
|
private TextView mLiveTypeTextView, liveClarity;//房间类型TextView
|
||||||
private TextView mLiveWishListTextView;//心愿单TextView
|
private TextView mLiveWishListTextView;//心愿单TextView
|
||||||
private int mLiveClassID;//直播频道id
|
private int mLiveClassID;//直播频道id
|
||||||
@ -88,9 +89,10 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
|
|||||||
private LiveClassBean classBean;
|
private LiveClassBean classBean;
|
||||||
private FaceManager manager;
|
private FaceManager manager;
|
||||||
private TextView faceTextView;//提示人脸未检测到的TextView
|
private TextView faceTextView;//提示人脸未检测到的TextView
|
||||||
private ImageView imgClarity;
|
private ImageView imgClarity, selectorProtocol;
|
||||||
private int selectClarity = 1;
|
private int selectClarity = 1;
|
||||||
private LiveOpenCustomPopup liveOpenCustomPopup;
|
private LiveOpenCustomPopup liveOpenCustomPopup;
|
||||||
|
private boolean selector = false;
|
||||||
|
|
||||||
public LiveNewReadyRyViewHolder(Context context, ViewGroup parentView, int liveSdk) {
|
public LiveNewReadyRyViewHolder(Context context, ViewGroup parentView, int liveSdk) {
|
||||||
super(context, parentView, liveSdk);
|
super(context, parentView, liveSdk);
|
||||||
@ -112,7 +114,9 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
|
|||||||
public void init() {
|
public void init() {
|
||||||
mRootView = (ConstraintLayout) findViewById(R.id.traceroute_rootview);
|
mRootView = (ConstraintLayout) findViewById(R.id.traceroute_rootview);
|
||||||
imgClarity = (ImageView) findViewById(R.id.img_clarity);
|
imgClarity = (ImageView) findViewById(R.id.img_clarity);
|
||||||
|
selectorProtocol = (ImageView) findViewById(R.id.selector_protocol);
|
||||||
liveClarity = (TextView) findViewById(R.id.live_clarity);
|
liveClarity = (TextView) findViewById(R.id.live_clarity);
|
||||||
|
anchorAgreement = (TextView) findViewById(R.id.anchor_agreement);
|
||||||
mRootView.setOnClickListener(new View.OnClickListener() {
|
mRootView.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
@ -121,6 +125,7 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
|
|||||||
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
|
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
mAvatar = (ConstraintLayout) findViewById(R.id.avatar);
|
mAvatar = (ConstraintLayout) findViewById(R.id.avatar);
|
||||||
mAvatar.setOnClickListener(this);
|
mAvatar.setOnClickListener(this);
|
||||||
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
||||||
@ -271,6 +276,19 @@ public class LiveNewReadyRyViewHolder extends AbsViewHolder implements View.OnCl
|
|||||||
.asCustom(liveClarityCustomPopup)
|
.asCustom(liveClarityCustomPopup)
|
||||||
.show();
|
.show();
|
||||||
});
|
});
|
||||||
|
String keywordHtml2 = "</font><font color='#FF8D41'size='42px'>" + mContext.getString(R.string.anchor_hint) + "</font>";
|
||||||
|
String contextHtml = "<font color='#ffffff'size='42px'>" + mContext.getString(R.string.anchor_agreement) + "</font>";
|
||||||
|
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) {
|
private void setSelectClarity(int selectClarity) {
|
||||||
|
@ -267,7 +267,7 @@
|
|||||||
android:layout_width="30dp"
|
android:layout_width="30dp"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:layout_marginStart="50dp"
|
android:layout_marginStart="50dp"
|
||||||
android:layout_marginBottom="53dp"
|
android:layout_marginBottom="83dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:srcCompat="@mipmap/icon_beauty" />
|
app:srcCompat="@mipmap/icon_beauty" />
|
||||||
@ -276,7 +276,7 @@
|
|||||||
android:id="@+id/btn_start_live"
|
android:id="@+id/btn_start_live"
|
||||||
android:layout_width="189dp"
|
android:layout_width="189dp"
|
||||||
android:layout_height="42dp"
|
android:layout_height="42dp"
|
||||||
android:layout_marginBottom="47dp"
|
android:layout_marginBottom="77dp"
|
||||||
android:background="@drawable/bg_live_ready_btn"
|
android:background="@drawable/bg_live_ready_btn"
|
||||||
android:text="@string/live_start"
|
android:text="@string/live_start"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
@ -303,9 +303,36 @@
|
|||||||
android:layout_width="30dp"
|
android:layout_width="30dp"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
android:layout_marginEnd="50dp"
|
android:layout_marginEnd="50dp"
|
||||||
android:layout_marginBottom="53dp"
|
android:layout_marginBottom="83dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:srcCompat="@mipmap/icon_robot" />
|
app:srcCompat="@mipmap/icon_robot" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/anchor_agreement_layout"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginBottom="50dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/selector_protocol"
|
||||||
|
android:layout_width="14dp"
|
||||||
|
android:layout_height="14dp"
|
||||||
|
android:src="@drawable/selector_protocol_check"
|
||||||
|
app:layout_constraintStart_toStartOf="parent" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/anchor_agreement"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="4dp"
|
||||||
|
android:text="@string/anchor_agreement"
|
||||||
|
android:textColor="@color/white"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
Reference in New Issue
Block a user