Ver código fonte

[회원가입][Common] 휴대폰 본인인은 약관 동의 아코디언으로 변경

Hasemi 7 anos atrás
pai
commit
962033fd86

+ 5 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/IMobileAuthorizationView.java

@@ -126,4 +126,9 @@ public interface IMobileAuthorizationView {
    * @param event
    */
   void onResultDelegate(Event event);
+
+  /**
+   * 동의하기 아코디언 구성
+   */
+  void doAccordionAgreeList();
 }

+ 5 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/MobileAuthorizationPresenter.java

@@ -111,6 +111,10 @@ public class MobileAuthorizationPresenter {
   public void onClickLayout() {
     doHideKeyBoard();
   }
+  public void doAccordionAgreeList(){
+    view.doAccordionAgreeList();
+
+  }
 
   /**
    * 스피너 터치 시
@@ -849,4 +853,5 @@ public class MobileAuthorizationPresenter {
     return result;
 
   }
+
 }

+ 24 - 2
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/MobileAuthorizationView.java

@@ -18,6 +18,7 @@ import android.widget.AdapterView;
 import android.widget.Button;
 import android.widget.CheckBox;
 import android.widget.EditText;
+import android.widget.ImageView;
 import android.widget.LinearLayout;
 import android.widget.RadioButton;
 import android.widget.Spinner;
@@ -47,6 +48,7 @@ public class MobileAuthorizationView extends ConstraintLayout implements View.On
 
   private LinearLayout scrollViewLinearLayout;
   private LinearLayout phoneIdentifyLayout;
+  private LinearLayout agreeListLayout;
 
   private EditText editTextName;
   private RadioButton radioSelectLocal;
@@ -65,7 +67,8 @@ public class MobileAuthorizationView extends ConstraintLayout implements View.On
   private TextView textViewNameValidation;
   private TextView textViewPhoneValidation;
   private TextView textAuthorizedNumberValidation;
-
+  private LinearLayout buttonAllAgreeDetail;
+  private ImageView imageViewArrow;
   private MobileAuthorizationPresenter presenter;
   protected CheckBoxAllDriver checkBoxAllDriver;
 
@@ -106,6 +109,7 @@ public class MobileAuthorizationView extends ConstraintLayout implements View.On
 
     scrollViewLinearLayout = view.findViewById(R.id.linear_layout_identify);
     phoneIdentifyLayout = view.findViewById(R.id.phone_identify_layout);
+    agreeListLayout = view.findViewById(R.id.layout_agree_list);
     buttonConfirm = view.findViewById(R.id.button_phone_identify_confirm);
     buttonTimeExpansion = view.findViewById(R.id.button_phone_identify_time_expansion);
     buttonIdentifyNumberSend = view.findViewById(R.id.button_identify_number_send);
@@ -126,13 +130,15 @@ public class MobileAuthorizationView extends ConstraintLayout implements View.On
     textViewNameValidation = view.findViewById(R.id.text_view_name_validation);
     textViewPhoneValidation = view.findViewById(R.id.text_view_phone_number_validation);
     textAuthorizedNumberValidation = view.findViewById(R.id.text_authorized_number_validation);
-
+    buttonAllAgreeDetail = view.findViewById(R.id.button_all_agree_detail);
+    imageViewArrow = view.findViewById(R.id.image_view_arrow);
     presenter = new MobileAuthorizationPresenter(this);
 
     scrollViewLinearLayout.setOnClickListener(this);
     buttonConfirm.setOnClickListener(this);
     buttonTimeExpansion.setOnClickListener(this);
     buttonIdentifyNumberSend.setOnClickListener(this);
+    buttonAllAgreeDetail.setOnClickListener(this);
 
     checkBoxAllDriver = new CheckBoxAllDriver(checkBoxAllAgree);
 
@@ -290,6 +296,9 @@ public class MobileAuthorizationView extends ConstraintLayout implements View.On
       case R.id.linear_layout_identify:
         presenter.onClickLayout();
         break;
+      case R.id.button_all_agree_detail:
+        presenter.doAccordionAgreeList();
+        break;
       default:
         break;
     }
@@ -385,6 +394,19 @@ public class MobileAuthorizationView extends ConstraintLayout implements View.On
     resultListener.onDialogResult(null, event);
   }
 
+  @Override
+  public void doAccordionAgreeList() {
+    if (agreeListLayout.getVisibility() == GONE) {
+      imageViewArrow.setImageResource(R.drawable.icon_closearrow);
+      agreeListLayout.setVisibility(VISIBLE);
+    }
+    else {
+      imageViewArrow.setImageResource(R.drawable.icon_openarrow);
+      agreeListLayout.setVisibility(GONE);
+    }
+
+  }
+
   /**
    * dispose
    */