|
@@ -4,17 +4,18 @@
|
|
|
package kr.co.zumo.app.lifeplus.activity;
|
|
package kr.co.zumo.app.lifeplus.activity;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
|
-import android.support.v7.widget.LinearLayoutManager;
|
|
|
|
|
|
|
+import android.support.v4.app.FragmentManager;
|
|
|
|
|
+import android.support.v4.app.FragmentTransaction;
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
import kr.co.zumo.app.R;
|
|
|
-import kr.co.zumo.app.lifeplus.application.App;
|
|
|
|
|
import kr.co.zumo.app.lifeplus.manager.ActionBarManager;
|
|
import kr.co.zumo.app.lifeplus.manager.ActionBarManager;
|
|
|
-import kr.co.zumo.app.lifeplus.view.ISignUpView;
|
|
|
|
|
import kr.co.zumo.app.lifeplus.model.SignUpModel;
|
|
import kr.co.zumo.app.lifeplus.model.SignUpModel;
|
|
|
-import kr.co.zumo.app.lifeplus.view.presenter.SignUpPresenter;
|
|
|
|
|
import kr.co.zumo.app.lifeplus.supervisor.DialogHelper;
|
|
import kr.co.zumo.app.lifeplus.supervisor.DialogHelper;
|
|
|
|
|
+import kr.co.zumo.app.lifeplus.view.ISignUpView;
|
|
|
import kr.co.zumo.app.lifeplus.view.fragment.signup.SignUpAdapter;
|
|
import kr.co.zumo.app.lifeplus.view.fragment.signup.SignUpAdapter;
|
|
|
|
|
+import kr.co.zumo.app.lifeplus.view.fragment.signup.SignUpStartFragment;
|
|
|
|
|
+import kr.co.zumo.app.lifeplus.view.presenter.SignUpPresenter;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* SignUpActivity
|
|
* SignUpActivity
|
|
@@ -34,7 +35,7 @@ public class SignUpActivity extends ActivityBase<SignUpPresenter> implements ISi
|
|
|
@Override
|
|
@Override
|
|
|
void onAfterCreate(Bundle savedInstanceState) {
|
|
void onAfterCreate(Bundle savedInstanceState) {
|
|
|
|
|
|
|
|
- setContentView(R.layout.fragment_sign_up);
|
|
|
|
|
|
|
+ setContentView(R.layout.activity_sign_up);
|
|
|
|
|
|
|
|
DialogHelper.getInstance().setFragmentManager(getSupportFragmentManager());
|
|
DialogHelper.getInstance().setFragmentManager(getSupportFragmentManager());
|
|
|
|
|
|
|
@@ -43,7 +44,7 @@ public class SignUpActivity extends ActivityBase<SignUpPresenter> implements ISi
|
|
|
// presenter.onCommand(new FragmentChangeCommand(ScreenID.MAIN));
|
|
// presenter.onCommand(new FragmentChangeCommand(ScreenID.MAIN));
|
|
|
|
|
|
|
|
|
|
|
|
|
- adapter = new SignUpAdapter(presenter);
|
|
|
|
|
|
|
+ /* adapter = new SignUpAdapter(presenter);
|
|
|
|
|
|
|
|
recyclerView = findViewById(R.id.sign_up_list);
|
|
recyclerView = findViewById(R.id.sign_up_list);
|
|
|
recyclerView.setHasFixedSize(true);
|
|
recyclerView.setHasFixedSize(true);
|
|
@@ -52,29 +53,41 @@ public class SignUpActivity extends ActivityBase<SignUpPresenter> implements ISi
|
|
|
recyclerView.setAdapter(adapter);
|
|
recyclerView.setAdapter(adapter);
|
|
|
|
|
|
|
|
|
|
|
|
|
- presenter.start();
|
|
|
|
|
|
|
+ presenter.start();*/
|
|
|
|
|
+
|
|
|
|
|
+ FragmentManager manager = getSupportFragmentManager();
|
|
|
|
|
+ FragmentTransaction fragmentTransaction = manager.beginTransaction();
|
|
|
|
|
+ SignUpStartFragment fragment = new SignUpStartFragment();
|
|
|
|
|
+ fragmentTransaction.add(R.id.sign_up_container, fragment);
|
|
|
|
|
+ fragmentTransaction.commit();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
protected void onDestroy() {
|
|
protected void onDestroy() {
|
|
|
super.onDestroy();
|
|
super.onDestroy();
|
|
|
-
|
|
|
|
|
- presenter.dispose();
|
|
|
|
|
|
|
+ //presenter.dispose();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
void defineActionBar() {
|
|
void defineActionBar() {
|
|
|
ActionBarManager actionBarManager = ActionBarManager.getInstance();
|
|
ActionBarManager actionBarManager = ActionBarManager.getInstance();
|
|
|
actionBarManager.setTitle(R.string.sign_up);
|
|
actionBarManager.setTitle(R.string.sign_up);
|
|
|
- actionBarManager.setDisplayHomeAsUpEnabled(true);
|
|
|
|
|
|
|
+
|
|
|
|
|
+/* actionBarManager.setDisplayShowHomeEnabled(false);
|
|
|
|
|
+ actionBarManager.setDisplayShowTitleEnabled(false);
|
|
|
|
|
+
|
|
|
|
|
+ View customActionBar = LayoutInflater.from(this).inflate(R.layout.sign_up_action_bar, null);
|
|
|
|
|
+ actionBarManager.setDisplayShowCustomEnabled(true);
|
|
|
|
|
+ actionBarManager.setCustomView(customActionBar);*/
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * recyclerView 에 아이템이 변경되었음을 알려준다.
|
|
|
|
|
|
|
+ * recyclerView 에 아이템이 변경되었음을 알려준다..
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
public void notifyItemChanged() {
|
|
public void notifyItemChanged() {
|
|
|
- adapter.notifyItemChanged(recyclerView, presenter.getSignUpList());
|
|
|
|
|
|
|
+ //adapter.notifyItemChanged(recyclerView, presenter.getSignUpList());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|