|
|
@@ -12,6 +12,8 @@ import java.util.List;
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.EventPolicyBean;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.EventQuestionBean;
|
|
|
+import kr.co.zumo.app.lifeplus.util.ResourceUtil;
|
|
|
+import kr.co.zumo.app.lifeplus.util.StringUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.CheckBoxAllDriver;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
@@ -61,9 +63,16 @@ class EventQuestionAgreeViewHolder extends EventQuestionViewHolder {
|
|
|
View view = inflater.inflate(R.layout.setting_agree_check, null);
|
|
|
CheckBox checkBox = view.findViewById(R.id.agree_check);
|
|
|
checkBox.setButtonDrawable(getStateListDrawable());
|
|
|
- checkBox.setText(policyBean.getTitle());
|
|
|
+ checkBox.setText(StringUtil.fromHtml(
|
|
|
+ new StringBuilder().append(policyBean.getMandatory().equals("Y") ? ResourceUtil.getString(R.string.agree_required) : ResourceUtil.getString(R.string.agree_option))
|
|
|
+ .append(" <font color='#999999'>").append(policyBean.getTitle()).append("</font>").toString()));
|
|
|
|
|
|
checkBoxAllDriver.addChildBox(checkBox);
|
|
|
+
|
|
|
+ checkBox.setOnCheckedChangeListener((compoundButton, b) -> {
|
|
|
+ checkBoxAllDriver.check();
|
|
|
+ });
|
|
|
+
|
|
|
// agree
|
|
|
checkBox.setOnClickListener(v -> {
|
|
|
});
|