|
|
@@ -7,12 +7,14 @@ import android.graphics.drawable.StateListDrawable;
|
|
|
import android.os.Bundle;
|
|
|
import android.support.annotation.NonNull;
|
|
|
import android.support.annotation.Nullable;
|
|
|
+import android.support.v4.content.ContextCompat;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.View;
|
|
|
import android.view.ViewGroup;
|
|
|
import android.widget.CheckBox;
|
|
|
import android.widget.Checkable;
|
|
|
import android.widget.EditText;
|
|
|
+import android.widget.ImageView;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
import java.util.List;
|
|
|
@@ -26,6 +28,7 @@ import kr.co.zumo.app.lifeplus.util.StringUtil;
|
|
|
import kr.co.zumo.app.lifeplus.view.CheckBoxAllDriver;
|
|
|
import kr.co.zumo.app.lifeplus.view.SimpleTextWatcher;
|
|
|
import kr.co.zumo.app.lifeplus.view.screen.FragmentBase;
|
|
|
+import kr.co.zumo.app.lifeplus.view.screen.setting.AccountType;
|
|
|
|
|
|
/**
|
|
|
* SettingMemberInfoFragment
|
|
|
@@ -49,6 +52,7 @@ public class SettingMemberInfoFragment extends FragmentBase<SettingMemberInfoPre
|
|
|
private View viewNameRegistration;
|
|
|
private View viewNameEdit;
|
|
|
private TextView textEmail;
|
|
|
+ private ImageView imageAccountType;
|
|
|
private View viewLogout;
|
|
|
private View viewPinReset;
|
|
|
private View viewCancel;
|
|
|
@@ -72,6 +76,7 @@ public class SettingMemberInfoFragment extends FragmentBase<SettingMemberInfoPre
|
|
|
viewNameRegistration = findViewById(R.id.text_registration);
|
|
|
viewNameEdit = findViewById(R.id.text_edit);
|
|
|
textEmail = findViewById(R.id.text_email);
|
|
|
+ imageAccountType = findViewById(R.id.image_account_type);
|
|
|
viewLogout = findViewById(R.id.text_logout);
|
|
|
viewPinReset = findViewById(R.id.text_reset_pin);
|
|
|
viewCancel = findViewById(R.id.text_cancel);
|
|
|
@@ -215,7 +220,7 @@ public class SettingMemberInfoFragment extends FragmentBase<SettingMemberInfoPre
|
|
|
|
|
|
@Override
|
|
|
public void setAccountType(int type) {
|
|
|
- // todo 계정 타입 표시
|
|
|
+ imageAccountType.setImageDrawable(ContextCompat.getDrawable(getContext(), AccountType.getAccountIconByType(type)));
|
|
|
}
|
|
|
|
|
|
@Override
|