Sfoglia il codice sorgente

[회원가입][New] 약관 동의 - 필수/선택 항목 구분하여 표시

hyodong.min 7 anni fa
parent
commit
620995e42b

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/fragment/signup/SignUpAgreeHolder.java

@@ -57,7 +57,7 @@ public class SignUpAgreeHolder extends BaseViewHolder {
     for (int i = 0; i < len; ++i) {
       checkBox = getCheckBoxByIndex(i);
       SignUpAgreeItemBean bean = items.get(i);
-      checkBox.setText(bean.getText());
+      checkBox.setText(new StringBuilder().append(bean.isRequired() ? ResourceUtil.getString(R.string.agree_required) : ResourceUtil.getString(R.string.agree_option)).append(bean.getText()).toString());
       checkBox.setChecked(bean.isChecked());
       checkBox.setEnabled(bean.isEnabled());
       checkBox.setOnCheckedChangeListener((buttonView, isChecked) -> {

+ 8 - 6
app/src/main/res/values/strings.xml

@@ -29,12 +29,14 @@
   <string name="main_text">메 인</string>
 
   <string name="all_agree">Lifeplus 가입 약관 전체 동의</string>
-  <string name="service_agree0">필수) Lifeplus 서비스 이용 약관 동의</string>
-  <string name="service_agree1">필수) 개인정보 수집 및 활용 동의</string>
-  <string name="service_agree2">선택) 개인정보 수집 및 활용 동의</string>
-  <string name="service_agree3">선택) 제휴사 서비스 이용을 위한 개인 정보 수집 및 활용 동의</string>
-  <string name="service_agree4">선택) 위치기반 서비스 이용 동의</string>
-  <string name="service_agree5">선택) 마케팅 정보 수집 동의</string>
+  <string name="agree_required">필수) </string>
+  <string name="agree_option">선택) </string>
+  <string name="service_agree0">Lifeplus 서비스 이용 약관 동의</string>
+  <string name="service_agree1">개인정보 수집 및 활용 동의</string>
+  <string name="service_agree2">개인정보 수집 및 활용 동의</string>
+  <string name="service_agree3">제휴사 서비스 이용을 위한 개인 정보 수집 및 활용 동의</string>
+  <string name="service_agree4">위치기반 서비스 이용 동의</string>
+  <string name="service_agree5">마케팅 정보 수집 동의</string>
 
   <string name="sign_up_password">Lifeplus에 사용할 간편 암호를 등록해주세요.</string>
   <string name="sign_up_register_pin">등록하실 간편암호 4자리를 입력해주세요.</string>