|
|
@@ -0,0 +1,82 @@
|
|
|
+/*
|
|
|
+ * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
|
|
|
+ */
|
|
|
+package kr.co.zumo.app.lifeplus.view.dialog;
|
|
|
+
|
|
|
+import android.os.Bundle;
|
|
|
+import android.support.annotation.NonNull;
|
|
|
+import android.support.annotation.Nullable;
|
|
|
+import android.view.LayoutInflater;
|
|
|
+import android.view.View;
|
|
|
+import android.view.ViewGroup;
|
|
|
+
|
|
|
+import kr.co.zumo.app.R;
|
|
|
+import kr.co.zumo.app.lifeplus.view.custom.pin.CustomPinConfirmPresenter;
|
|
|
+import kr.co.zumo.app.lifeplus.view.custom.pin.CustomPinView;
|
|
|
+import kr.co.zumo.app.lifeplus.view.custom.pin.IPinContract;
|
|
|
+
|
|
|
+/**
|
|
|
+ * PinConfirmDialog
|
|
|
+ * <pre>
|
|
|
+ * </pre>
|
|
|
+ *
|
|
|
+ * @author 민효동
|
|
|
+ * @version 1.0
|
|
|
+ * @history 민효동 [2018. 11. 1.] [최초 작성]
|
|
|
+ * @since 2018. 11. 1.
|
|
|
+ */
|
|
|
+public class PinConfirmDialog extends DialogBase {
|
|
|
+
|
|
|
+ private CustomPinView customPinView;
|
|
|
+ private IPinContract.Presenter pinPresenter;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onCreate(Bundle savedInstanceState) {
|
|
|
+ super.onCreate(savedInstanceState);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onDestroyView() {
|
|
|
+ super.onDestroyView();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @Nullable
|
|
|
+ @Override
|
|
|
+ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
|
|
|
+ return inflater.inflate(R.layout.view_container, container, false);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onActivityCreated(Bundle savedInstanceState) {
|
|
|
+ super.onActivityCreated(savedInstanceState);
|
|
|
+
|
|
|
+
|
|
|
+ customPinView = new CustomPinView(getContext());
|
|
|
+ pinPresenter = new CustomPinConfirmPresenter(customPinView, new IPinContract.Listener() {
|
|
|
+ @Override
|
|
|
+ public void onPinResult(String result) {
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onClickPinReset() {
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onClickClose() {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onPinFail() {
|
|
|
+ pinPresenter.onPinStart();
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ View parent = getView();
|
|
|
+ ViewGroup layout = parent.findViewById(R.id.container);
|
|
|
+ ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
|
|
|
+ layout.addView(customPinView, params);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|