如何设置文本从string.xml和普通的字符串文本视图在一个时间文本、视图、字符串、如何设置

2023-09-07 16:39:14 作者:生死悠关组合!

R.string.Converasation包含对话这里是code

R.string.Converasation contains Conversation Here is the code

tv.setText(R.string.Converasation+"HELLo");

TextView的看法正在R.string.Converasation和你好的字符串值的int值和最终显示2131034187Hello,但我想ConverasationHello

textview view is taking int value of R.string.Converasation and string value of HELLo and finally displays 2131034187Hello but i want ConverasationHello

如何解决这个..

推荐答案

尝试

tv.setText(getString(R.string.Converasation) + "HELLo");

马克。