|
|
@@ -15,6 +15,7 @@ import android.widget.CheckBox;
|
|
|
import android.widget.Checkable;
|
|
|
import android.widget.EditText;
|
|
|
import android.widget.ImageView;
|
|
|
+import android.widget.LinearLayout;
|
|
|
import android.widget.TextView;
|
|
|
|
|
|
import java.util.List;
|
|
|
@@ -57,6 +58,7 @@ public class SettingMemberInfoFragment extends FragmentBase<SettingMemberInfoPre
|
|
|
private View viewPinReset;
|
|
|
private View viewCancel;
|
|
|
private View viewMemberOut;
|
|
|
+ private View viewLine;
|
|
|
private CheckBoxAllDriver checkBoxAllDriver;
|
|
|
private View layoutPassword;
|
|
|
private CheckBox checkBoxAll;
|
|
|
@@ -84,6 +86,7 @@ public class SettingMemberInfoFragment extends FragmentBase<SettingMemberInfoPre
|
|
|
viewCancel = findViewById(R.id.text_cancel);
|
|
|
viewMemberOut = findViewById(R.id.text_member_out);
|
|
|
layoutPassword = findViewById(R.id.layout_password);
|
|
|
+ viewLine = findViewById(R.id.view_line);
|
|
|
checkBoxAll = findViewById(R.id.agree_check_all);
|
|
|
checkBoxAll.setVisibility(View.GONE);
|
|
|
|
|
|
@@ -226,8 +229,18 @@ public class SettingMemberInfoFragment extends FragmentBase<SettingMemberInfoPre
|
|
|
@Override
|
|
|
public void setAccountType(String type) {
|
|
|
imageAccountType.setImageDrawable(ContextCompat.getDrawable(getContext(), AccountType.getAccountIconByType(type)));
|
|
|
-
|
|
|
layoutPassword.setVisibility(AccountType.TYPE_EMAIL.equals(type) ? View.VISIBLE : View.GONE);
|
|
|
+ LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) viewLine.getLayoutParams();
|
|
|
+
|
|
|
+ if (AccountType.TYPE_EMAIL.equals(type)) {
|
|
|
+ params.setMargins(params.leftMargin, 0, params.rightMargin, params.bottomMargin);
|
|
|
+
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ params.setMargins(params.leftMargin, ResourceUtil.dpToPx(38), params.rightMargin, params.bottomMargin);
|
|
|
+ }
|
|
|
+
|
|
|
+ viewLine.setLayoutParams(params);
|
|
|
}
|
|
|
|
|
|
@Override
|