update 年齡標籤+歲

This commit is contained in:
zlzw 2024-03-21 15:09:11 +08:00
parent 1442d05262
commit 457e47e885
2 changed files with 6 additions and 3 deletions

View File

@ -98,9 +98,12 @@ public class MessageSayHiNotifyDialog extends AbsDialogCenterPopupWindow {
ImgLoader.display(mContext, userInfoBean.getUser().getAvatar(), avatar); ImgLoader.display(mContext, userInfoBean.getUser().getAvatar(), avatar);
anchorName.setText(userInfoBean.getUser().getUserNicename()); anchorName.setText(userInfoBean.getUser().getUserNicename());
((TextView) findViewById(R.id.description)).setText(userInfoBean.getUser().getSignature()); ((TextView) findViewById(R.id.description)).setText(userInfoBean.getUser().getSignature());
ViewUtils.findViewById(findViewById(R.id.age), R.id.tag, TextView.class).setText(String.format("%s%s", ViewUtils.findViewById(findViewById(R.id.age), R.id.tag, TextView.class).setText(String.format("%s%s%s",
WordUtil.getNewString(R.string.dialog_message_say_hi_age) WordUtil.getNewString(R.string.dialog_message_say_hi_age)
, userInfoBean.getInfo().getAge())); , userInfoBean.getInfo().getAge()
,WordUtil.isNewZh()?"":"Age"
)
);
showTag(); showTag();
} }

View File

@ -320,7 +320,7 @@ public class PDLiveConversationActivity extends AbsActivity implements View.OnCl
private void showTag() { private void showTag() {
List<String> tags = new ArrayList<>(); List<String> tags = new ArrayList<>();
tags.add(userInfoBean.getInfo().getAge()); tags.add(userInfoBean.getInfo().getAge()+(WordUtil.isNewZh()?"":"Age"));
if (!StringUtil.isEmpty(userInfoBean.getInfo().getCareer())) { if (!StringUtil.isEmpty(userInfoBean.getInfo().getCareer())) {
tags.add(userInfoBean.getInfo().getCareer()); tags.add(userInfoBean.getInfo().getCareer());
} }