fix [注册默认不需要选择性别]
This commit is contained in:
parent
12989e12ce
commit
d08861a082
@ -117,7 +117,7 @@ public class CompleteUserInfoActivity extends AbsActivity {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (man.getTag() == null && woman.getTag() == null) {
|
if (man.getTag() == null && woman.getTag() == null) {
|
||||||
ToastUtil.show("請選擇性別");
|
ToastUtil.show(WordUtil.isNewZh()?"請選擇性別":"Please select gender");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ public class CompleteUserInfoActivity extends AbsActivity {
|
|||||||
|
|
||||||
|
|
||||||
void initSexView() {
|
void initSexView() {
|
||||||
ViewUtils.findViewById(man, R.id.sex_bg).setBackgroundResource(R.drawable.complete_user_info_sex_man);
|
ViewUtils.findViewById(man, R.id.sex_bg).setBackgroundResource(R.drawable.dialog_bg_chat_status_config_unselect);
|
||||||
ViewUtils.findViewById(man, R.id.sex_icon, ImageView.class).setImageTintList(ColorStateList.valueOf(Color.parseColor("#00A3FF")));
|
ViewUtils.findViewById(man, R.id.sex_icon, ImageView.class).setImageTintList(ColorStateList.valueOf(Color.parseColor("#00A3FF")));
|
||||||
ViewUtils.findViewById(man, R.id.sex_top_icon, ImageView.class).setImageTintList(ColorStateList.valueOf(Color.parseColor("#00A3FF")));
|
ViewUtils.findViewById(man, R.id.sex_top_icon, ImageView.class).setImageTintList(ColorStateList.valueOf(Color.parseColor("#00A3FF")));
|
||||||
ViewUtils.findViewById(woman, R.id.sex_bg).setBackgroundResource(R.drawable.dialog_bg_chat_status_config_unselect);
|
ViewUtils.findViewById(woman, R.id.sex_bg).setBackgroundResource(R.drawable.dialog_bg_chat_status_config_unselect);
|
||||||
@ -251,7 +251,7 @@ public class CompleteUserInfoActivity extends AbsActivity {
|
|||||||
ViewUtils.findViewById(woman, R.id.sex_text, TextView.class).setText(R.string.activity_reg_user_info_sex_woman);
|
ViewUtils.findViewById(woman, R.id.sex_text, TextView.class).setText(R.string.activity_reg_user_info_sex_woman);
|
||||||
ViewUtils.findViewById(woman, R.id.sex_text, TextView.class).setTextColor(Color.parseColor("#333333"));
|
ViewUtils.findViewById(woman, R.id.sex_text, TextView.class).setTextColor(Color.parseColor("#333333"));
|
||||||
ViewUtils.findViewById(man, R.id.sex_text, TextView.class).setTextColor(Color.parseColor("#00A3FF"));
|
ViewUtils.findViewById(man, R.id.sex_text, TextView.class).setTextColor(Color.parseColor("#00A3FF"));
|
||||||
man.setTag("man");
|
man.setTag(null);
|
||||||
woman.setTag(null);
|
woman.setTag(null);
|
||||||
man.setOnClickListener(view -> {
|
man.setOnClickListener(view -> {
|
||||||
ViewUtils.findViewById(man, R.id.sex_bg).setBackgroundResource(R.drawable.complete_user_info_sex_man);
|
ViewUtils.findViewById(man, R.id.sex_bg).setBackgroundResource(R.drawable.complete_user_info_sex_man);
|
||||||
|
Loading…
Reference in New Issue
Block a user