如何设置文本从string.xml和普通的字符串文本视图在一个时间 [英] How to set text to a text view from a string.xml and normal string at a time

查看:98
本文介绍了如何设置文本从string.xml和普通的字符串文本视图在一个时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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");

马克。

这篇关于如何设置文本从string.xml和普通的字符串文本视图在一个时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆