|
|
@@ -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
|
|
|
*/
|