|
|
@@ -3,10 +3,13 @@ package kr.co.zumo.app.lifeplus.view.screen.common;
|
|
|
import android.os.Bundle;
|
|
|
import android.support.annotation.NonNull;
|
|
|
import android.support.annotation.Nullable;
|
|
|
+import android.support.constraint.ConstraintLayout;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
|
+import android.widget.TextView;
|
|
|
|
|
|
+import kr.co.zumo.app.R;
|
|
|
import kr.co.zumo.app.lifeplus.helper.ActionBarHelper;
|
|
|
import kr.co.zumo.app.lifeplus.view.screen.FragmentBase;
|
|
|
|
|
|
@@ -20,25 +23,40 @@ import kr.co.zumo.app.lifeplus.view.screen.FragmentBase;
|
|
|
* @history 하세미 [2019-01-09] [최초 작성]
|
|
|
* @since 2019-01-09
|
|
|
*/
|
|
|
-public class ServiceCheckFragment extends FragmentBase<ServiceCheckPresenter> {
|
|
|
+public class ServiceCheckFragment extends FragmentBase<ServiceCheckPresenter> implements IServiceCheckView {
|
|
|
+
|
|
|
+ private ConstraintLayout layoutOneButton;
|
|
|
+ private ConstraintLayout layoutTwoButton;
|
|
|
+ private TextView textViewMain;
|
|
|
+ private TextView textViewPrePage;
|
|
|
+ private TextView textViewConfirm;
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
protected View onAfterCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
|
|
- return null;
|
|
|
+ return inflater.inflate(R.layout.fragment_service_check, container, false);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
protected void onAfterActivityCreated(Bundle savedInstanceState) {
|
|
|
-
|
|
|
+ layoutOneButton = findViewById(R.id.layout_one_button);
|
|
|
+ layoutTwoButton = findViewById(R.id.layout_two_button);
|
|
|
+ textViewMain = findViewById(R.id.main);
|
|
|
+ textViewPrePage = findViewById(R.id.pre_page);
|
|
|
+ textViewConfirm = findViewById(R.id.button_confirm);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
protected void defineActionBar(ActionBarHelper actionBarHelper) {
|
|
|
-
|
|
|
+ actionBarHelper.begin()
|
|
|
+ .title(R.string.service_check_title)
|
|
|
+ .back(actionBar -> presenter.onNavigationClickBack(actionBar))
|
|
|
+ .show();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
protected ServiceCheckPresenter definePresenter() {
|
|
|
- return null;
|
|
|
+ return new ServiceCheckPresenter(getModel(ServiceCheckModel.class), this);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -55,4 +73,16 @@ public class ServiceCheckFragment extends FragmentBase<ServiceCheckPresenter> {
|
|
|
protected boolean isSkipScreenWhenBack() {
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void isOneButton(boolean isOneButton) {
|
|
|
+ if (isOneButton) {
|
|
|
+ layoutOneButton.setVisibility(View.VISIBLE);
|
|
|
+ layoutTwoButton.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ layoutOneButton.setVisibility(View.GONE);
|
|
|
+ layoutTwoButton.setVisibility(View.VISIBLE);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|