|
|
@@ -18,6 +18,7 @@ import java.util.List;
|
|
|
import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.bean.api.FAQBean;
|
|
|
import kr.co.zumo.app.lifeplus.manager.ActionBarManager;
|
|
|
+import kr.co.zumo.app.lifeplus.manager.ActionButtonManager;
|
|
|
import kr.co.zumo.app.lifeplus.model.FAQModel;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
import kr.co.zumo.app.lifeplus.view.IFAQView;
|
|
|
@@ -63,9 +64,6 @@ public class FAQFragment extends FragmentBase<FAQPresenter> implements IFAQView
|
|
|
tabLayoutFaq = findViewById(R.id.faq_tab_layout);
|
|
|
viewPagerFaq = findViewById(R.id.faq_view_pager);
|
|
|
tabLayoutFaq.setTabGravity(TabLayout.GRAVITY_FILL);
|
|
|
-
|
|
|
- buttonWriteFAQ = findViewById(R.id.button_write_faq);
|
|
|
- buttonWriteFAQ.setOnClickListener(view -> presenter.onEvent(new Event.Builder(Event.FAQ).build()));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -73,6 +71,13 @@ public class FAQFragment extends FragmentBase<FAQPresenter> implements IFAQView
|
|
|
ActionBarManager.getInstance().begin().title(R.string.faq).menu().search().back().show();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ protected void defineActionButton() {
|
|
|
+ ActionButtonManager.getInstance().begin().pencil(floatingActionButton -> {
|
|
|
+ presenter.onEvent(new Event.Builder(Event.FAQ).build());
|
|
|
+ }).show();
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
protected FAQPresenter definePresenter() {
|
|
|
return new FAQPresenter(getModel(FAQModel.class), this);
|