|
|
@@ -13,14 +13,14 @@ import android.widget.TextView;
|
|
|
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.manager.ActionBarManager;
|
|
|
-import kr.co.zumo.app.lifeplus.model.TutorialModel;
|
|
|
+import kr.co.zumo.app.lifeplus.model.OnBoardingModel;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
-import kr.co.zumo.app.lifeplus.view.ITutorialView;
|
|
|
-import kr.co.zumo.app.lifeplus.view.fragment.tutorial.TutorialPagerAdapter;
|
|
|
-import kr.co.zumo.app.lifeplus.view.presenter.TutorialPresenter;
|
|
|
+import kr.co.zumo.app.lifeplus.view.IOnBoardingView;
|
|
|
+import kr.co.zumo.app.lifeplus.view.fragment.onboarding.OnBoardingPagerAdapter;
|
|
|
+import kr.co.zumo.app.lifeplus.view.presenter.OnBoardingPresenter;
|
|
|
|
|
|
/**
|
|
|
- * TutorialActivity
|
|
|
+ * OnBoardingActivity
|
|
|
* <pre>
|
|
|
* </pre>
|
|
|
*
|
|
|
@@ -29,7 +29,7 @@ import kr.co.zumo.app.lifeplus.view.presenter.TutorialPresenter;
|
|
|
* @history 민효동 [2018. 9. 19.] [최초 작성]
|
|
|
* @since 2018. 9. 19.
|
|
|
*/
|
|
|
-public class TutorialActivity extends ActivityBase<TutorialPresenter> implements ITutorialView {
|
|
|
+public class OnBoardingActivity extends ActivityBase<OnBoardingPresenter> implements IOnBoardingView {
|
|
|
|
|
|
private View bottomBar;
|
|
|
private PagerAdapter pagerAdapter;
|
|
|
@@ -41,7 +41,7 @@ public class TutorialActivity extends ActivityBase<TutorialPresenter> implements
|
|
|
@Override
|
|
|
void onAfterCreate(Bundle savedInstanceState) {
|
|
|
setContentView(R.layout.activity_tutorial);
|
|
|
- presenter = new TutorialPresenter(new TutorialModel(), this);
|
|
|
+ presenter = new OnBoardingPresenter(new OnBoardingModel(), this);
|
|
|
bottomBar = (View) findViewById(R.id.tutorial_bottom_layout);
|
|
|
viewPager = (ViewPager) findViewById(R.id.tutorial_view_pager);
|
|
|
tabLayout = (TabLayout) findViewById(R.id.tutorial_tab_layout);
|
|
|
@@ -51,12 +51,12 @@ public class TutorialActivity extends ActivityBase<TutorialPresenter> implements
|
|
|
viewPager = findViewById(R.id.tutorial_view_pager);
|
|
|
tabLayout = findViewById(R.id.tutorial_tab_layout);
|
|
|
|
|
|
- TutorialPagerAdapter tutorialPagerAdapter = presenter.getPagerAdapter(this);
|
|
|
- tutorialPagerAdapter.setPresenter(presenter);
|
|
|
- tutorialPagerAdapter.setBottomBar(bottomBar);
|
|
|
- tutorialPagerAdapter.setTabLayout(tabLayout);
|
|
|
+ OnBoardingPagerAdapter onBoardingPagerAdapter = presenter.getPagerAdapter(this);
|
|
|
+ onBoardingPagerAdapter.setPresenter(presenter);
|
|
|
+ onBoardingPagerAdapter.setBottomBar(bottomBar);
|
|
|
+ onBoardingPagerAdapter.setTabLayout(tabLayout);
|
|
|
|
|
|
- pagerAdapter = tutorialPagerAdapter;
|
|
|
+ pagerAdapter = onBoardingPagerAdapter;
|
|
|
|
|
|
// 1개 일 때 인디케이터 표시하지 않기
|
|
|
// if (pagerAdapter.getCount() < 2) {
|
|
|
@@ -76,7 +76,7 @@ public class TutorialActivity extends ActivityBase<TutorialPresenter> implements
|
|
|
|
|
|
@Override
|
|
|
public void onPageScrollStateChanged(int state) {
|
|
|
- Log.w("APP# TutorialActivity | onPageScrollStateChanged", "|" + state);
|
|
|
+ Log.w("APP# OnBoardingActivity | onPageScrollStateChanged", "|" + state);
|
|
|
|
|
|
}
|
|
|
});
|
|
|
@@ -92,8 +92,8 @@ public class TutorialActivity extends ActivityBase<TutorialPresenter> implements
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- TutorialPresenter definePresenter() {
|
|
|
- return new TutorialPresenter(getModel(TutorialModel.class), this);
|
|
|
+ OnBoardingPresenter definePresenter() {
|
|
|
+ return new OnBoardingPresenter(getModel(OnBoardingModel.class), this);
|
|
|
}
|
|
|
|
|
|
@Override
|