|
|
@@ -11,6 +11,8 @@ import android.view.ViewGroup;
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.helper.ActionBarHelper;
|
|
|
import kr.co.zumo.app.lifeplus.model.BlankModel;
|
|
|
+import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
+import kr.co.zumo.app.lifeplus.view.IEventListener;
|
|
|
import kr.co.zumo.app.lifeplus.view.custom.SwipeNoneViewPager;
|
|
|
import kr.co.zumo.app.lifeplus.view.screen.FragmentBase;
|
|
|
|
|
|
@@ -29,6 +31,7 @@ public class LifeplusIntroductionFragment extends FragmentBase<LifeplusIntroduct
|
|
|
private TabLayout tabLayoutIntroduction;
|
|
|
private SwipeNoneViewPager viewPagerIntroduction;
|
|
|
private LifeplusIntroductionPagerAdapter pagerAdapter;
|
|
|
+ private IEventListener listener;
|
|
|
|
|
|
private static final String APP_GUIDE = "App 이용가이드";
|
|
|
private static final String LIFE_PLUS_BRAND = "Lifeplus 브랜드";
|
|
|
@@ -48,7 +51,12 @@ public class LifeplusIntroductionFragment extends FragmentBase<LifeplusIntroduct
|
|
|
|
|
|
|
|
|
String[] tabs = {APP_GUIDE, LIFE_PLUS_BRAND};
|
|
|
- pagerAdapter = new LifeplusIntroductionPagerAdapter(getChildFragmentManager(), tabs);
|
|
|
+ pagerAdapter = new LifeplusIntroductionPagerAdapter(getChildFragmentManager(), new IEventListener() {
|
|
|
+ @Override
|
|
|
+ public void onEvent(Event event) {
|
|
|
+ presenter.onEvent(event);
|
|
|
+ }
|
|
|
+ }, tabs);
|
|
|
tabLayoutIntroduction.setupWithViewPager(viewPagerIntroduction, true);
|
|
|
viewPagerIntroduction.setAdapter(pagerAdapter);
|
|
|
|